예제 #1
0
 public static Shape SingleSeries(Fr[] members, int count = 256)
 {
     return(Polygons.FourierSeries(count, members.Perfecto()).ToShape().Rotate(Math.PI / 2).Adjust());
 }
예제 #2
0
 public static Shape Polygon(int n, double a = 0.1, int count = 100, bool fill = true) =>
 Polygons.FourierSeries(count, (n - 1, 6 * a / (n - 1)), (-1, 1))
 .Condition(fill, p => p.Fill()).TurnOut().ToShape3()
예제 #3
0
 public static Shape Series3(int an, int bn, double a, double b, int count, bool fill, double da = 0, double db = 0) => Polygons
 .FourierSeries(count, (an, a, da), (bn, b, db), (-1, 1))
 .Condition(fill, p => p.Fill())
예제 #4
0
 public static Shape Star(double a = 0.15, int count = 100, bool fill = true) =>
 Polygons.FourierSeries(count, (4, a), (-1, 1))
 .Condition(fill, p => p.Fill()).TurnOut().ToShape3()