Function fract

Source
pub fn fract<T, const D: usize>(
    x: &Matrix<T, Const<D>, Const<1>, ArrayStorage<T, D, 1>>,
) -> Matrix<T, Const<D>, Const<1>, ArrayStorage<T, D, 1>>
where T: RealNumber,
Expand description

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: