Linux Assemblycollection of fast libraries

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 nameFunctionsC++ function nameFunctions
DegToGrad2 functionsDegToGrad2 functions
DegToRad2 functionsDegToRad2 functions
GradToDeg2 functionsGradToDeg2 functions
GradToRad2 functionsGradToRad2 functions
RadToDeg2 functionsRadToDeg2 functions
RadToGrad2 functionsRadToGrad2 functions
C function nameFunctionsC++ function nameFunctions

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.

Copyright 2012-2016 Jack Black. All rights reserved.