atan2(Variable, Variable) Function

Top 

Description

Computes the four-quadrant inverse tangent of (y/x) and returns values in the closed interval [-pi,pi].

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Function Signature

atan2(

Variable y,


Variable x)

 

 

Arguments

y


Description:

Numerator used in the two-argument inverse tangent calculation.

 

 

x


Description:

Denominator used in the two-argument inverse tangent calculation.

 

 

 

Return Value

Type:

number

Units:

rad

 

 

The inverse tangent of the specified value (y/x).

 

Syntax

myVariable1 = atan2(myVariable2, myVariable3);

 

 

See also

atan2