slight bezier optimization

This commit is contained in:
MaxOhn
2021-04-28 23:21:40 +02:00
parent 964b972eac
commit 921f2afeac
3 changed files with 12 additions and 10 deletions
+5
View File
@@ -9,6 +9,11 @@ pub struct Pos2 {
}
impl Pos2 {
#[inline]
pub fn zero() -> Self {
Self::default()
}
#[inline]
pub fn length_squared(&self) -> f32 {
self.dot(*self)