fixed stack offset for lazy_end_pos
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user