1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use cgmath;

//Vector types

pub type Vector2f = cgmath::Vector2<f32>;
pub type Vector3f = cgmath::Vector3<f32>;
pub type Vector4f = cgmath::Vector4<f32>;

pub type Vector2i = cgmath::Vector2<i32>;
pub type Vector3i = cgmath::Vector3<i32>;

pub type Vector2u = cgmath::Vector2<u32>;
pub type Vector3u = cgmath::Vector3<u32>;

/// 4x4 column-major f32 matrix.
pub type Matrix4f = cgmath::Matrix4<f32>;

//Angles
pub type Deg = cgmath::Deg<f32>;
pub type Rad = cgmath::Rad<f32>;

//Euler
pub type Euler = cgmath::Euler<Deg>;

//Quaternion
pub type Quaternion = cgmath::Quaternion<f32>;