Exemple #1
0
 private static Angle InteriorAngle(this CircularStack <KtPoint2D> points, KtPoint2D point) =>
 points.Aggregate(Degrees.Create(0.0), (total, c) => total + c.InteriorAngle(point));
 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()));