ATAN2

 

The ATAN2 function returns the inverse tangent, in radians, of the input values. Both input values (numerator and denominator) must be real numbers. The returned value is within the range of -π ~ π.

 

Format

 

Arguments definition

A real number or a function that returns a real number

     This value must belong to the x-axis in a tangent function.

A real number or a function that returns a real number

     This value must belong to the y-axis in a tangent function.

 

Formulation

 

Example

As shown in the following figure, the ATAN2 function calculates the inverse tangent (in radians) of Marker 1 on the InertiaMarker’s x-axis.

ATAN2( DY(1,2),DX(1,2) )  <Argument: (1)body1.marker1, (2)body2.marker2 >