Friday, July 1, 2016

ceil

cited


Ceiling

float ceil(float x)  
vec2 ceil(vec2 x)  
vec3 ceil(vec3 x)  
vec4 ceil(vec4 x)
The ceiling function returns the smallest number that is larger or equal to x. The input parameter can be a floating scalar or a float vector. In case of a float vector the operation is done component-wise.
Side note: The return value is of type floating scalar or float vector although the result of the operation is an integer.

No comments:

Post a Comment