[]Function rusty_engine::prelude::glm::floor

pub fn floor<N, D>(
    x: &Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>
) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer> where
    D: Dimension,
    N: RealField,
    DefaultAllocator: Alloc<N, D, U1>, 

Returns componentwise a value equal to the nearest integer that is less then or equal to x.

Examples:

let vec = glm::vec3(-1.5, 0.5, 2.8);
assert_eq!(glm::vec3(-2.0, 0.0, 2.0), glm::floor(&vec));

See also: