Change field viewer

This commit is contained in:
Evgeny Redikultsev
2025-12-13 20:13:45 +05:00
parent 681ab17781
commit f937b9f373
31 changed files with 730 additions and 246 deletions

View File

@@ -14,8 +14,8 @@ namespace FieldVisualizer.Entities.Values.Primitives
// --- Computed properties ---
// Centroid (geometric center)
public double CenterX => (Point1.X + Point2.X + Point3.X) / 3.0;
public double CenterY => (Point1.Y + Point2.Y + Point3.Y) / 3.0;
public double CenterX => (Point1.X + Point2.X + Point3.X) / 3d;
public double CenterY => (Point1.Y + Point2.Y + Point3.Y) / 3d;
// Triangle area using determinant formula
public double Area =>