コード例 #1
0
 public int GetDistance(PointB other)
 {
     return(Math.Max(Math.Max(Math.Abs(X - other.X), Math.Abs(Y - other.Y)), Math.Abs(Z - other.Z)));
 }
コード例 #2
0
 public PointB Add(PointB other)
 {
     return(new PointB((byte)(X + other.X), (byte)(Y + other.Y), (byte)(Z + other.Z)));
 }
コード例 #3
0
 public static PointI AsPointI(this PointB point)
 {
     return(new PointI(point.X, point.Y, point.Z));
 }