atan2 Reference

Two-variable arc-tangent function

atan2

Description

Use the atan2 object to calculate and output the arc-tangent of any two given numbers where the left input is the y value and the right input is the x value.

Examples

Arguments

x-value [number]

Optional

Sets the initial X value for the arc-tangent function.

Attributes

Common Box Attributes

Messages

bang

Calculates the arc-tangent of the numbers currently stored. If there is no argument, atan2 initially holds 0 for both input values.

int

Arguments

y-value [int]
In left input: y value input to an arc-tangent function

  (inlet1)

Arguments

x-value [int]
In right input: x value input to an arc-tangent function

float

Arguments

y-value [float]
In left input: y value input to an arc-tangent function

  (inlet1)

Arguments

x-value [float]
In right input: x value input to an arc-tangent function

Output

float

The arc-tangent of the input values (i.e. Arc-tangent (y/x)).

int

The arc-tangent of the input values (i.e. Arc-tangent (y/x)).

See Also

Name Description
atan
atanh
tan