Esempio n. 1
0
 public PointI Add(PointI other)
 {
     return(new PointI(X + other.X, Y + other.Y, Z + other.Z));
 }
Esempio n. 2
0
 public int GetDistance(PointI other)
 {
     return(Math.Max(Math.Max(Math.Abs(X - other.X), Math.Abs(Y - other.Y)), Math.Abs(Z - other.Z)));
 }
Esempio n. 3
0
 public static PointF AsPointF(this PointI point)
 {
     return(new PointF(point.X, point.Y, point.Z));
 }
Esempio n. 4
0
 public static Vector3 AsVector(this PointI point)
 {
     return(new Vector3(point.X, point.Y, point.Z));
 }
Esempio n. 5
0
 public static PointB AsPointB(this PointI point)
 {
     return(new PointB((byte)point.X, (byte)point.Y, (byte)point.Z));
 }