Function ceil

Source
pub fn ceil<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

For each matrix or vector component returns a value equal to the nearest integer that is greater than or equal to x.

§Examples:

let vec = glm::vec3(-1.5, 0.5, 2.8);
assert_eq!(glm::vec3(-1.0, 1.0, 3.0), glm::ceil(&vec));

§See also: