Function nalgebra_glm::fract[][src]

pub fn fract<N: Real, D: Dimension>(x: &TVec<N, D>) -> TVec<N, D> where
    DefaultAllocator: Alloc<N, D>, 

Returns the fractional part of each component of x.

Examples:

let vec = glm::vec3(-1.5, 0.5, 2.25);
assert_eq!(glm::vec3(-0.5, 0.5, 0.25), glm::fract(&vec));

See also: