1 2 3 4 5 6 7 8
use cgmath; pub type Vec3 = cgmath::Vector3<f32>; pub type Pt = cgmath::Point3<f32>; pub type Idx = usize; pub type Tri = [Idx; 3]; pub type Mat4 = cgmath::Matrix4<f32>; pub type Quat = cgmath::Quaternion<f32>;
1 2 3 4 5 6 7 8
use cgmath; pub type Vec3 = cgmath::Vector3<f32>; pub type Pt = cgmath::Point3<f32>; pub type Idx = usize; pub type Tri = [Idx; 3]; pub type Mat4 = cgmath::Matrix4<f32>; pub type Quat = cgmath::Quaternion<f32>;