예제 #1
0
 private static Angle InteriorAngle(this CircularStack <KtPoint2D> points, KtPoint2D point) =>
 points.Aggregate(Degrees.Create(0.0), (total, c) => total + c.InteriorAngle(point));
예제 #2
0
 public static Angle TotalInternalAngle(this CircularStack <KtPoint2D> points, KtPoint2D point) =>
 points.Aggregate(Degrees.Create(0), (total, c) => total + (c?.Next?.Value - point).ToKtVector2D().AngleBetween((c?.Value - point).ToKtVector2D()));