Пример #1
0
 public BlockCoordinates(PlayerLocation location)
 {
     X = (int)Math.Floor(location.X);
     Y = (int)Math.Floor(location.Y);
     Z = (int)Math.Floor(location.Z);
 }
Пример #2
0
 public double DistanceTo(PlayerLocation other)
 {
     return(Math.Sqrt(Square(other.X - X) +
                      Square(other.Y - Y) +
                      Square(other.Z - Z)));
 }
Пример #3
0