Represents an angle object.
More...
#include <Angle.hpp>
|
| enum class | AngleUnit { Degree
, Radians
} |
| | Different angle units.
|
| |
Represents an angle object.
◆ Angle()
| vrml_proc::math::Angle::Angle |
( |
AngleUnit | unit, |
|
|
double | value ) |
|
inline |
Constructs an angle.
- Parameters
-
| unit | unit used in value paramater |
| value | value of the angle in unit |
◆ GetUnit()
| AngleUnit vrml_proc::math::Angle::GetUnit |
( |
| ) |
const |
|
inline |
Gets the current angle unit.
- Returns
- current angle unit (
AngleUnit::Degree or AngleUnit::Radian)
◆ GetValueAs()
| double vrml_proc::math::Angle::GetValueAs |
( |
AngleUnit | unit | ) |
const |
|
inline |
Converts the stored angle value to the specified unit.
- Parameters
-
| unit | target angle unit to convert the value to (either AngleUnit::Degree or AngleUnit::Radian) |
- Returns
- angle value in the specified unit
◆ SetValue()
| void vrml_proc::math::Angle::SetValue |
( |
AngleUnit | unit, |
|
|
double | value ) |
|
inline |
Sets new angle value and its unit.
- Parameters
-
| unit | unit of the angle (either AngleUnit::Degree or AngleUnit::Radian) |
| value | new angle value in the specified unit |
The documentation for this class was generated from the following file: