micro optimizations

This commit is contained in:
MaxOhn
2021-04-28 22:19:18 +02:00
parent 2707f1aabc
commit 643a67888d
5 changed files with 14 additions and 17 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ impl Pos2 {
}
#[inline]
pub fn distance(&self, other: &Self) -> f32 {
(*self - *other).length()
pub fn distance(&self, other: Self) -> f32 {
(*self - other).length()
}
#[inline]