Angle libraryAngle.h
Angle library converts angle values between different popular units: degrees, radians and gradians. All functions in this library are implemented as inline functions, and can do angle conversion very fast. They are useful to change angle representation format in programs.
Contents
Function list
C function name | Functions | C++ function name | Functions |
---|---|---|---|
DegToGrad | 2 functions | DegToGrad | 2 functions |
DegToRad | 2 functions | DegToRad | 2 functions |
GradToDeg | 2 functions | GradToDeg | 2 functions |
GradToRad | 2 functions | GradToRad | 2 functions |
RadToDeg | 2 functions | RadToDeg | 2 functions |
RadToGrad | 2 functions | RadToGrad | 2 functions |
C function name | Functions | C++ function name | Functions |
Conversion radians to degrees
Cflt32_t Angle_RadToDeg_flt32 (flt32_t angle); flt64_t Angle_RadToDeg_flt64 (flt64_t angle);
C++flt32_t Angle::RadToDeg (flt32_t angle); flt64_t Angle::RadToDeg (flt64_t angle);
Description: Convert radians to degrees without range reduction.
Parameters:
- angle - angle value to convert into another units
Return value: New angle value represented in selected units.
Conversion radians to gradians
Cflt32_t Angle_RadToGrad_flt32 (flt32_t angle); flt64_t Angle_RadToGrad_flt64 (flt64_t angle);
C++flt32_t Angle::RadToGrad (flt32_t angle); flt64_t Angle::RadToGrad (flt64_t angle);
Description: Convert radians to gradians without range reduction.
Parameters:
- angle - angle value to convert into another units
Return value: New angle value represented in selected units.
Conversion degrees to radians
Cflt32_t Angle_DegToRad_flt32 (flt32_t angle); flt64_t Angle_DegToRad_flt64 (flt64_t angle);
C++flt32_t Angle::DegToRad (flt32_t angle); flt64_t Angle::DegToRad (flt64_t angle);
Description: Convert degrees to radians without range reduction.
Parameters:
- angle - angle value to convert into another units
Return value: New angle value represented in selected units.
Conversion degrees to gradians
Cflt32_t Angle_DegToGrad_flt32 (flt32_t angle); flt64_t Angle_DegToGrad_flt64 (flt64_t angle);
C++flt32_t Angle::DegToGrad (flt32_t angle); flt64_t Angle::DegToGrad (flt64_t angle);
Description: Convert degrees to gradians without range reduction.
Parameters:
- angle - angle value to convert into another units
Return value: New angle value represented in selected units.
Conversion gradians to radians
Cflt32_t Angle_GradToRad_flt32 (flt32_t angle); flt64_t Angle_GradToRad_flt64 (flt64_t angle);
C++flt32_t Angle::GradToRad (flt32_t angle); flt64_t Angle::GradToRad (flt64_t angle);
Description: Convert gradians to radians without range reduction.
Parameters:
- angle - angle value to convert into another units
Return value: New angle value represented in selected units.
Conversion gradians to degrees
Cflt32_t Angle_GradToDeg_flt32 (flt32_t angle); flt64_t Angle_GradToDeg_flt64 (flt64_t angle);
C++flt32_t Angle::GradToDeg (flt32_t angle); flt64_t Angle::GradToDeg (flt64_t angle);
Description: Convert gradians to degrees without range reduction.
Parameters:
- angle - angle value to convert into another units
Return value: New angle value represented in selected units.