Tangent Inverse

This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.

The inverse tangent trigonometric function (atan or atan2, depending on input type) calculates: atan: the angle whose tangent is the input scalar number. atan2: the angle of a ray from the origin to the input vec2.

The resulting atan angle is always in the range [-90°, 90°] or, in radians, [-π/2, π/2]. The resulting atan2 angle is always in the range [-180°, 180°] or, in radians, [-π, π].

Interface

Inputs

ParameterDetailsPossible Types
Value

The given value for which the angle is calculated.

Primary Input

Number[]
Number
Vec2[]
Vec2
Radians

Whether the resulting angle should be given in radians instead of degrees.

Default: false

Bool[]
Bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Number[]