Rad class
#include <Rodin/Math/Rad.h>
Represents an angle in radians.
This class provides a type-safe wrapper for angles measured in radians, inheriting all the unit arithmetic operations from the Unit base class.
Example Usage
Rad angle1(Math::Constants::pi()); // π radians (180 degrees) Rad angle2(Math::Constants::pi() / 2); // π/2 radians (90 degrees) Rad sum = angle1 + angle2; // 3π/2 radians
Base classes
-
template<class Derived, class T>class Unit<Rad, Real>
- Base class for units using CRTP.