#include <PExtension.h>
Angle class is designed to simplify, reduce confusion, and provide consistency in angle-related computations. It eliminates the need to remember whether a function parameter or variable is expressed in radians or degrees.
Public Member Functions | |
| Angle (AngleType type, Real value) | |
| Real | getDegrees () |
| Real | getRadians () |
| Angle::Angle | ( | AngleType | type, | |
| Real | value | |||
| ) |
Constructs a new Angle of the specified type (angleDeg or angleRad) and with the specified value.
| Real Angle::getDegrees | ( | ) |
Returns the value of this Angle in degrees.
| Real Angle::getRadians | ( | ) |
Returns the value of this Angle in radians.
1.5.1