Mjolnir Core
Core functionality of the Mjolnir API
Core Math
cross_product
cross_product
determinant_2x2
determinant_2x2
determinant_3x3
determinant_3x3
determinant_4x4
determinant_4x4
dot_product
dot_product
gauss_summation
is_power_of_2
power
power_of_2
scalar_triple_product
scalar_triple_product
◆
power_of_2()
constexpr auto power_of_2
(
std::integral auto
exponent
)
-> T_Type
constexpr
noexcept
Calculate the power of 2 using an integer based exponent.
Note
This function is faster than the
power
function with a base of 2.
Template Parameters
T_Type
An integer or floating-point type used for the returned value
Parameters
[in]
exponent
The exponent
Returns
The result of the power function
Generated by
1.9.1