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

Vec2[]
Vec2
f32[]
f32
f64[]
f64
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

f64
f64[]
f32
f32[]
Vec2
Vec2[]