diff options
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/position.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs index 540419ba..630a3a55 100755 --- a/azalea-core/src/position.rs +++ b/azalea-core/src/position.rs @@ -39,6 +39,11 @@ macro_rules! vec3_impl { self.x * self.x + self.z * self.z } + #[inline] + pub fn horizontal_distance_to_sqr(&self, other: &Self) -> $type { + (self - other).horizontal_distance_sqr() + } + /// Return a new instance of this position with the y coordinate /// decreased by the given number. #[inline] |
