Trait glm::GenVec
[−]
[src]
pub trait GenVec<T: Primitive>: Copy + Index<usize, Output = T> + IndexMut<usize, Output = T> { fn dim() -> usize; }
Generic vector type.
Required Methods
fn dim() -> usize
Returns the dimension of the vector.
Example
use glm::GenVec; // bring the method into scope. assert_eq!(glm::IVec4::dim(), 4);