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

◆ operator*() [2/2]

template<typename T>
requires std::integral<T>
Angle SRL::Math::Types::Angle::operator* ( T scalar) const
inlineconstexpr

Multiplies an angle by an integer scalar value.

Template Parameters
TInteger type (deduced from parameter)
Parameters
scalarThe integer scalar value to multiply by
Returns
New Angle object containing the result
Note
This operates directly on the raw value without fixed-point conversion, making it more efficient for integer multiplication.
Automatically wraps around the result due to 16-bit arithmetic.