Go to the source code of this file.
◆ AlignUp()
template<typename T >
T AlignUp |
( |
T |
inV, |
|
|
uint64 |
inAlignment |
|
) |
| |
|
inline |
Align inV up to the next inAlignment bytes.
◆ BitCast()
template<class To , class From >
JPH_INLINE To BitCast |
( |
const From & |
inValue | ) |
|
◆ CenterAngleAroundZero()
float CenterAngleAroundZero |
( |
float |
inV | ) |
|
|
inline |
Convert angle in radians to the range \([-\pi, \pi]\).
◆ Clamp()
template<typename T >
constexpr T Clamp |
( |
T |
inV, |
|
|
T |
inMin, |
|
|
T |
inMax |
|
) |
| |
|
constexpr |
Clamp a value between two values.
◆ CountBits()
Count the number of 1 bits in a value.
◆ CountLeadingZeros()
Compute the number of leading zero bits (how many high bits are zero)
◆ CountTrailingZeros()
Compute number of trailing zero bits (how many low bits are zero)
◆ Cubed()
template<typename T >
constexpr T Cubed |
( |
T |
inV | ) |
|
|
constexpr |
◆ DegreesToRadians()
constexpr float DegreesToRadians |
( |
float |
inV | ) |
|
|
constexpr |
Convert a value from degrees to radians.
◆ GetNextPowerOf2()
Get the next higher power of 2 of a value, or the value itself if the value is already a power of 2.
◆ IsAligned()
template<typename T >
bool IsAligned |
( |
T |
inV, |
|
|
uint64 |
inAlignment |
|
) |
| |
|
inline |
Check if inV is inAlignment aligned.
◆ IsPowerOf2()
template<typename T >
constexpr bool IsPowerOf2 |
( |
T |
inV | ) |
|
|
constexpr |
Check if inV is a power of 2.
◆ RadiansToDegrees()
constexpr float RadiansToDegrees |
( |
float |
inV | ) |
|
|
constexpr |
Convert a value from radians to degrees.
◆ Sign()
template<typename T >
constexpr T Sign |
( |
T |
inV | ) |
|
|
constexpr |
◆ Square()
template<typename T >
constexpr T Square |
( |
T |
inV | ) |
|
|
constexpr |