floor

Floors a vector to the nearest integer.

nothrow @safe
T
floor
(
T
)
()

Examples

assert(floor(vector(.25, .5, .75)) == vector(0, 0, 0));

Meta