Trait vector2math::FloatingScalar [−][src]
Trait for floating-point scalar numbers
Associated Constants
Loading content...Provided methods
fn pi() -> Self
[src]
Get the value of pi
fn lerp(self, other: Self, t: Self) -> Self
[src]
Linear interpolate the scalar with another
fn angle_as_vector(self) -> [Self; 2]
[src]
Get the unit vector corresponding to an angle in radians defined by the scalar
fn is_zero(self) -> bool
[src]
Check if the value is within its epsilon range
fn is_near_zero(self, n: Self) -> bool
[src]
Check if the value is within a multiple epsilon range