aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-core/src')
-rwxr-xr-xazalea-core/src/position.rs5
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]