Template Function TRAP::Math::IsPowerOfTwo(const Vec<L, T>&)#

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, bool> TRAP::Math::IsPowerOfTwo(const Vec<L, T> &v)#

Check if value is a power of two number.

Parameters:

v – Specify the value to evaluate.

Returns:

True if the value is a power of two number.