22 #define thisTTClass RadianUnit
23 #define thisTTClassName "unit.radian"
24 #define thisTTClassTags "dataspace.unit, angle"
30 RadianUnit::~RadianUnit(){;}
45 #undef thisTTClassName
46 #undef thisTTClassTags
50 #define thisTTClass DegreeUnit
51 #define thisTTClassName "unit.degree"
52 #define thisTTClassTags "dataspace.unit, angle"
58 DegreeUnit::~DegreeUnit(){;}
73 #undef thisTTClassName
74 #undef thisTTClassTags
78 #define thisTTClass AngleDataspace
79 #define thisTTClassName "dataspace.angle"
80 #define thisTTClassTags "foundationDataspaceLib, dataspace, angle"
85 registerUnit(
TT(
"unit.radian"),
TT(
"radian"));
86 registerUnit(
TT(
"unit.radian"),
TT(
"rad"));
87 registerUnit(
TT(
"unit.degree"),
TT(
"degree"));
88 registerUnit(
TT(
"unit.degree"),
TT(
"deg"));
91 neutralUnit =
TT(
"radian");
94 setInputUnit(neutralUnit);
95 setOutputUnit(neutralUnit);
99 AngleDataspace::~AngleDataspace()
105 #undef thisTTClassName
106 #undef thisTTClassTags
void convertToNeutral(const TTValue &input, TTValue &output)
Convert from degrees to neutral unit.
The AngleDataspace converts between different measurement untis describing trigonometric angles...
void convertFromNeutral(const TTValue &input, TTValue &output)
Convert from neutral unit to degrees.
double TTFloat64
64 bit floating point number
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
TTFOUNDATION_EXPORT const TTFloat64 kTTRadiansToDegrees
Factor constant for converting radians to degrees.
Specification for the base class of each DataspaceUnit.
TTFOUNDATION_EXPORT const TTFloat64 kTTDegreesToRadians
Factor constant for converting degrees to radians.
void convertToNeutral(const TTValue &input, TTValue &output)
Convert from radians to neutral unit.
TT_OBJECT_CONSTRUCTOR
Constructor macro.
[doxygenAppendixC_copyExample]
void convertFromNeutral(const TTValue &input, TTValue &output)
Convert from neutral unit to radians.