Expand description
Simple math utilities.
Structs§
- Vec2
- Simple two-dimensional vector of any numerical type. Supports only few mathematical operations as this is used mainly as data struct.
Enums§
- Rounding
Mode - Round up or down in specific calculations.
Functions§
- ceil_
log_ 🔒2 - Computes
ceil(log(x)/log(2))
. Returns 0 where argument is 0. - floor_
log_ 🔒2 - Computes
floor(log(x)/log(2))
. Returns 0 where argument is 0.