Crate vek [] [src]

Generic linear algebra focused on computer graphics and intent.

It does not try to be extensive (e.g rect primitives don't ship with a physics engine.)

Reexports

pub use bezier::*;
pub use clamp::*;
pub use geom::*;
pub use lerp::*;
pub use mat::*;
pub use quat::*;
pub use tween::*;
pub use vec::*;
pub use wrap::*;

Modules

bezier
clamp
geom
lerp

NOTE: If you want to lerp with integer types, convert them to floats first, lerp on them, then convert them back to integers. This eases our implementation and gives you explicit control over the conversion behavior.

mat
quat
tween
vec

Shuffling is well-done by destructuring and thus not implemented here.

wrap