Rad

Represents an angle in radians.

Defined in Rodin/Math/Rad.h

class Rad;

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
Direct inheritance by class family
↓
Rad

Inherits from

Base classResponsibility
Unit<Rad, Real>public
Full type
Unit< Rad, Real >
Base class for units using CRTP.

Inherited interface

Declared inMembers
Unit
22 members

Public types

using Parent = Unit<Rad, Real>
Parent class type.