Fix various minor issues

This commit is contained in:
2026-09-03 18:50:38 +02:00
parent 472d21fd39
commit 7c7f9a2762
15 changed files with 54 additions and 32 deletions
+6
View File
@@ -118,6 +118,12 @@ impl FGVec2 {
(to - self).length()
}
#[inline]
#[must_use]
pub fn distance_squared(self, to: Self) -> FGWide {
(to - self).length_squared()
}
#[inline]
pub fn normalize(&self) -> Option<Self> {
let x = I32F32::from_num(self.x);