This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.
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
| Parameter | Details | Possible Types |
|---|---|---|
| Theta | The given angle. Primary Input | Number[]NumberVec2[]Vec2 |
| Radians | Whether the given angle should be interpreted as radians instead of degrees. Default: | Bool[]Bool |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | NumberNumber[]Vec2Vec2[] |