32 #ifndef mathutils_INCLUDE_ONCE 33 #define mathutils_INCLUDE_ONCE VLCORE_EXPORT i32 randomI32(i32 min, i32 max)
Returns a random number N between 'min' and 'max' (included) generated using MersenneTwister->randInt...
VLCORE_EXPORT void extractPlanes(Plane *planes, const mat4 &modelviewproj)
Extracts the 6 frustum planes for the given model-view-projection matrix.
int i32
32 bits signed integer
VLCORE_EXPORT real random(real min, real max)
Returns a random number N between 'min' and 'max' (included) with 53 bits of randomness generated usi...
VLCORE_EXPORT u32 randomU32(u32 min, u32 max)
Returns a random number N between 'min' and 'max' (included) generated using MersenneTwister->randInt...
Visualization Library main namespace.
float max(float a, float b)
float min(float a, float b)
unsigned int u32
32 bits unsigned integer
Implements the OpenGL Shading Language convenience functions for scalar and vector operations...
fmat4 mat4
Defined as: 'typedef fmat4 mat4'. See also VL_PIPELINE_PRECISION.
VLCORE_EXPORT int greaterEqualPow2(int n)
Returns a number N that is a power of 2 and that is equal to or greater than 'n'. ...
VLCORE_EXPORT int smallerEqualPow2(int n)
Returns a number N that is a power of 2 and that is equal to or smaller than 'n'. ...