Cosine

The cosine trigonometric function (cos) calculates the ratio of the angle's adjacent side length to its hypotenuse length.

With a vec2 input, this applies separately to the X and Y components.

Interface

Inputs

ParameterDetailsPossible Types
Theta

The given angle.

Primary Input

Number[]
Number
Vec2[]
Vec2
Radians

Whether the given angle should be interpreted as radians instead of degrees.

Default: false

Bool[]
Bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Number[]
Vec2
Vec2[]