Fesapi 2.3.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Functions
trigonometry Namespace Reference

The trigonometry namespace. More...

Functions

double convertToRadians (double angleValue, gsoap_resqml2_0_1::eml20__PlaneAngleUom angleUom)
 
std::pair< double, double > rotateXY (double xSource, double ySource, double angleValue, gsoap_resqml2_0_1::eml20__PlaneAngleUom angleUom)
 

Detailed Description

The trigonometry namespace.

Function Documentation

◆ convertToRadians()

double trigonometry::convertToRadians ( double  angleValue,
gsoap_resqml2_0_1::eml20__PlaneAngleUom  angleUom 
)

Convert an angle into radians

Parameters
angleValueThe angle value.
angleUomThe angle uom.
Returns
The given data converted to radians.

◆ rotateXY()

std::pair< double, double > trigonometry::rotateXY ( double  xSource,
double  ySource,
double  angleValue,
gsoap_resqml2_0_1::eml20__PlaneAngleUom  angleUom 
)

From https://fr.wikipedia.org/wiki/Matrice_de_rotation#En_dimension_deux

Parameters
xSourceThe X coordinate of the point to rotate.
ySourceThe Y coordinate of the point to rotate.
angleValueThe rotation angle value. A positive value indicates a clockwise rotation.
angleUomThe rotation angle unit of measure.
Returns
A pair of double where the first value is the X coordinate of the rotated point and where the second value is the Y coordinate of the rotated point.