public BlockCoordinates(PlayerLocation location) { X = (int)Math.Floor(location.X); Y = (int)Math.Floor(location.Y); Z = (int)Math.Floor(location.Z); }
public double DistanceTo(PlayerLocation other) { return(Math.Sqrt(Square(other.X - X) + Square(other.Y - Y) + Square(other.Z - Z))); }