Skip to content

Math.Cos

Name - 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
4
5
(float3 0 3.1415927 6.2831853)
(Math.Cos) (Log)

(Math.Subtract (float3 1.0 -1.0 1.0)) (Math.Abs)
(IsLess (float3 1e-05 1e-05 1e-05)) (Assert.Is true true)