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

Divides an angle by an integer scalar value.

Template Parameters
TInteger type (deduced from parameter)
Parameters
scalarThe integer scalar value to divide 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 division.
Automatically wraps around the result due to 16-bit arithmetic.
Warning
Division by zero will cause undefined behavior.