SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Pow()

Fxp SRL::Math::Types::Fxp::Pow ( const Fxp & exponent) const
inlineconstexpr

Power function for fixed-point numbers.

Calculates this value raised to the power of exponent. Uses repeated multiplication for integer exponents.

Parameters
exponentThe power to raise this value to
Returns
The result of this^exponent
Note
Only supports non-negative integer exponents for efficiency