fixed stack offset for lazy_end_pos

This commit is contained in:
MaxOhn
2021-11-08 04:14:48 +01:00
parent 3aa7bbe39f
commit cd4d89f5aa
4 changed files with 48 additions and 16 deletions
+5
View File
@@ -14,6 +14,11 @@ impl Pos2 {
Self::default()
}
#[inline]
pub fn new(value: f32) -> Self {
Self { x: value, y: value }
}
#[inline]
pub fn length_squared(&self) -> f32 {
self.dot(*self)