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