Skip to content

Math.Acos

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

This shard calculates the inverse cosine of the given input, where the input is the cosine value. The output is the angle in radians whose cosine is the input value.

Examples

1
2
3
@f4(-1.0 0.0 0.5 1.0) | Math.Acos | Log
Math.Subtract(@f4(3.1415927 1.5707963 1.0471976 0.0)) | Math.Abs
IsLess(@f4(0.00001 0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f4(3.14159 1.5708 1.0472 0)