pub trait Vector2DExt {
// Required methods
fn size(self) -> f32;
fn size_squared(self) -> f32;
fn is_nearly_zero(self, tolerance: f32) -> bool;
}Expand description
Extension trait for Vector2D operations
Required Methods§
Sourcefn size_squared(self) -> f32
fn size_squared(self) -> f32
Get the squared size (magnitude squared)
Sourcefn is_nearly_zero(self, tolerance: f32) -> bool
fn is_nearly_zero(self, tolerance: f32) -> bool
Check if the vector is nearly zero