[chronojump] New class Point3F to manage points of 3 dimensions



commit 6da7dfb6075a20cbfbe26fc82df221019e145ffd
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Aug 25 01:46:02 2021 +0200

    New class Point3F to manage points of 3 dimensions

 src/utilMath.cs | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
---
diff --git a/src/utilMath.cs b/src/utilMath.cs
index 90555ddfb..f01c129df 100644
--- a/src/utilMath.cs
+++ b/src/utilMath.cs
@@ -62,6 +62,32 @@ public class PointF
        }
 }
 
+//nice to have an X, Y and a value (Z)
+public class Point3F
+{
+       private double x;
+       private double y;
+       private double z;
+
+       public Point3F (double x, double y, double z)
+       {
+               this.x = x;
+               this.y = y;
+               this.z = z;
+       }
+
+       public double X {
+               get { return x; }
+       }
+       public double Y {
+               get { return y; }
+       }
+       public double Z {
+               get { return z; }
+       }
+}
+
+
 public class KeyDouble
 {
        private string key;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]