[][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]

pub const fn new(a: T, b: T) -> Self[src]

impl<T: Copy> Vec2<T>[src]

pub fn flip(&self) -> Self[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)

pub fn signed_angle(&self, dst: &Self) -> T[src]

pub fn perp(&self) -> Self[src]

pub fn homogeneous(&self) -> Vec3<T>[src]