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))); }
public PointB Add(PointB other) { return(new PointB((byte)(X + other.X), (byte)(Y + other.Y), (byte)(Z + other.Z))); }
public static PointI AsPointI(this PointB point) { return(new PointI(point.X, point.Y, point.Z)); }