Update examples.

This commit is contained in:
wo80
2022-02-28 00:13:27 +01:00
parent 2290b5bd56
commit b3bfac11d1
8 changed files with 109 additions and 10 deletions
+5 -2
View File
@@ -72,8 +72,11 @@ namespace TriangleNet.Examples
double x = p.X;
double y = p.Y;
double xr = Math.Cos(radians) * x - Math.Sin(radians) * y;
double yr = Math.Sin(radians) * x + Math.Cos(radians) * y;
double s = Math.Sin(radians);
double c = Math.Cos(radians);
double xr = c * x - s * y;
double yr = s * x + c * y;
poly.Points.Add(new Vertex(xr, yr) { ID = id++ });
}