Math.Cos¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The input float or sequence of floats to calculate the cosine of. | Float Float2 Float3 Float4 Color [Any] |
||
Output ➡️ |
Outputs the cosine of the input. | Float Float2 Float3 Float4 Color [Any] |
This shard calculates the cosine of the given input, where the input is the angle in radians.
Details¶
If the input value is negative, the shard will interpret them as angles measured clockwise from the positive x-axis.
Cos is a periodic function where the value repeats every 2π.
Cos is bounded and will always return a value between -1 and 1.
If a sequence of floats was provided as input, the shard will calculate the cosine of each element in the sequence and output a sequence.
If a sequence of vectors was provided as input, the shard will calculate the cosine of each component in each vector in the sequence and output a sequence of vectors where each component in each vector is the cosine of the corresponding component in the input sequence.
Examples¶
1 2 3 4 5 |
|