Deg
Represents an angle in degrees.
Defined in Rodin/Math/Deg.h
class Deg;
This class provides a type-safe wrapper for angles measured in degrees, inheriting all the unit arithmetic operations from the Unit base class. Provides a conversion method to radians.
Example Usage
Deg angle(180.0); // 180 degrees Rad radians = angle.toRad(); // π radians
↓
Deg
Inherits from
| Base class | Responsibility |
|---|---|
Unit<Deg, Real>public | Base class for units using CRTP. |
Inherited interface
| Declared in | Members |
|---|---|
Unit |