Math: Trig

Nodes in this category perform trigonometric operations such as sine, cosine, tangent, and their inverses.

Nodes

NodeDetailsPossible Types
Cosine

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

f64 → f64
f32 → f32
Cosine Inverse

The inverse cosine trigonometric function (acos) calculates the angle whose cosine is the input value.

f64 → f64
f32 → f32
Sine

The sine trigonometric function (sin) calculates the ratio of the angle's opposite side length to its hypotenuse length.

f64 → f64
f32 → f32
Sine Inverse

The inverse sine trigonometric function (asin) calculates the angle whose sine is the input value.

f64 → f64
f32 → f32
Tangent

The tangent trigonometric function (tan) calculates the ratio of the angle's opposite side length to its adjacent side length.

f64 → f64
f32 → f32
Tangent Inverse

The inverse tangent trigonometric function (atan or atan2, depending on input type) calculates:

atan: the angle whose tangent is the input scalar number.

atan2: the angle of a ray from the origin to the input vec2.

The resulting angle is always in the range [-90°, 90°] or, in radians, [-π/2, π/2].

f64 → f64
f32 → f32
vec2 → f64