Function glm::builtin::ceil [] [src]

pub fn ceil<F: BaseFloat, T: GenFloat<F>>(x: T) -> T

Returns a value equal to the nearest integer that is greater than or equal to x.

Example

use glm::{ ceil, dvec3 };

assert_eq!(ceil(-3.14_f32), -3.);
assert_eq!(ceil(3.14_f32), 4.);
assert_eq!(ceil(dvec3(-1.8, 1., 1.8)), dvec3(-1., 1., 2.));