Skip to content

Math.Cos

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the cosine of. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the cosine of the input. FloatFloat2Float3Float4Color[Any]

This shard calculates the cosine of the given input, where the input is the angle in radians.

Examples

1
2
3
@f3(0 3.1415927 6.2831853) | Math.Cos | Log
Math.Subtract(@f3(1.0 -1.0 1.0)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(1 -1 1)