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 millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to 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