SaturnRingLibrary
0.9.2
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
inline
constexpr
Divides an angle by an integer scalar value.
Template Parameters
T
Integer
type (deduced from parameter)
Parameters
scalar
The 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.
SRL
Math
Types
Angle