[−][src]Type Definition quick_maths::Vec2
type Vec2<T = DefaultFloat> = Vector<2, T>;
2D vector with default float type (f32).
Implementations
impl<T> Vec2<T>
[src]
impl<T: Copy> Vec2<T>
[src]
impl<T: Float> Vec2<T>
[src]
pub fn rot(&self, theta: T) -> Self
[src]
Rotates this vector around the origin by theta (in radians)