Calulate dig range using eyes location (#1228)

This commit is contained in:
ORelio 2020-08-24 00:06:52 +02:00
parent ee164dfcc2
commit 70c991cd30
3 changed files with 11 additions and 2 deletions

View file

@ -149,6 +149,15 @@ namespace MinecraftClient.Mapping
return Math.Sqrt(DistanceSquared(location));
}
/// <summary>
/// Considering the current location as Feet location, calculate Eyes location
/// </summary>
/// <returns>Player Eyes location</returns>
public Location EyesLocation()
{
return this + new Location(0, 1.62, 0);
}
/// <summary>
/// Compare two locations. Locations are equals if the integer part of their coordinates are equals.
/// </summary>