Skip to content

Math.Atan

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the inverse tangent of. FloatFloat2Float3Float4Color[Any]Audio
Output ➡️ Outputs the angle in radians whose tangent is the input value. FloatFloat2Float3Float4Color[Any]Audio

This shard calculates the inverse tangent of the given input (arc tangent).

Details

If a sequence of floats was provided as input, the shard will calculate the inverse tangent of each element in the sequence and output a sequence.

If a sequence of vectors was provided as input, the shard will calculate the inverse tangent of each component in each vector in the sequence and output a sequence of vectors where each component in each vector is the inverse tangent of the corresponding component in the input sequence.

Examples

1
2
3
@f3(-1.0 0.0 1.0) | Math.Atan | Log
Math.Subtract(@f3(-0.78539816 0.0 0.78539816)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(-0.785398 0 0.785398)