This is the documentation for Enlighten.
module Scalars
Functions
Name | Description |
|---|---|
Return the absolute value of a number. | |
Return the absolute value of a number. | |
Return the absolute value of a number. | |
Return the absolute value of a number. | |
Compute the next whole number greater than a. | |
Clamp a numeric type T to the given range. | |
Returns the number of consecutive leading zero bits. | |
Returns the number of set bits. | |
Returns the number of consecutive trailing zero bits. | |
Perform an integer division that rounds the result to the next integer. | |
Returns true if Abs(a - b) is less than the epsilon. | |
Converts a float into a signed integer using a faster method than the standard C truncation convention which requires a rounding mode change. | |
Compute the next whole number smaller than a. | |
Returns true if u is multiple of the specified power of 2. | |
Returns true if p is multiple of the specified power of 2. | |
Return true is unsignedInt is a power of 2 or not. | |
Linearly interpolate between a and b with factor s. | |
Calculate the logarithm with specified base of the given number;. | |
Return the Max of a and b. | |
Return the Max of {a,b,c}. | |
Return the Max of a and b. | |
Return the Min of {a,b,c}. | |
Return a modulo b. | |
This will round the number u to the next multiple of a power of 2 if the number isn't already a multiple of the power of 2. | |
Round a 32bit unsigned int to the next power of 2. | |
Round a 64bit unsigned int to the next power of 2. | |
This will round the number u down to the previous multiple of a power of 2 if the number isn't already a multiple of the power of 2. |
s32 Geo::Abs
public: s32 Abs
(
s32 a
)
Return the absolute value of a number.