Create page and add basic information |
Added a Further Reading section and a video. |
||
(3 intermediate revisions by one other user not shown) | |||
Line 14: | Line 14: | ||
The '''Cos''' node returns the [https://en.wikipedia.org/wiki/Sine_and_cosine| Cosine] of the input value. | The '''Cos''' node returns the [https://en.wikipedia.org/wiki/Sine_and_cosine| Cosine] of the input value. | ||
{{Template:Note|Input values are treated as [https://en.wikipedia.org/wiki/Radian radians]. If you want to use values in degrees, first multiply by the [[ProtoFlux: | {{Template:Note|Input values are treated as [https://en.wikipedia.org/wiki/Radian radians]. If you want to use values in degrees, first multiply by the [[ProtoFlux:Deg_2_Rad | Deg 2 Rad]] node.|suggestion}} | ||
This node has the following variants: | This node has the following variants: | ||
Line 21: | Line 21: | ||
! Variant !! Node Type | ! Variant !! Node Type | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Color|Color]]) || <code>Cos_Color</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:ColorX|ColorX]]) || <code>Cos_ColorX</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Double|double]]) || <code>Cos_Double</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Double2|double2]]) || <code>Cos_Double2</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Double3|double3]]) || <code>Cos_Double3</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Double4|double4]]) || <code>Cos_Double4</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Float|float]]) || <code>Cos_Float</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Float2|float2]]) || <code>Cos_Float2</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Float3|float3]]) || <code>Cos_Float3</code> | ||
|- | |- | ||
|Cos ([[ | |Cos ([[Type:Float4|float4]]) || <code>Cos_Float4</code> | ||
|} | |} | ||
== Inputs == | == Inputs == | ||
=== N (Pseudo-Generic) === | === N (Pseudo-Generic) === | ||
Line 51: | Line 50: | ||
== Outputs == | == Outputs == | ||
=== | === * (Pseudo-Generic) === | ||
Cosine of N. | Cosine of N. | ||
== Further Reading == | |||
=== Videos === | |||
<youtube>txgyHQq2_bc</youtube> | |||
[[Category:ProtoFlux:Math:Trigonometry]] | [[Category:ProtoFlux:Math:Trigonometry]] |
Latest revision as of 20:18, 1 July 2024
Cos
Trigonometry
The Cos node returns the Cosine of the input value.
This node has the following variants:
Variants
Variant | Node Type |
---|---|
Cos (Color) | Cos_Color
|
Cos (ColorX) | Cos_ColorX
|
Cos (double) | Cos_Double
|
Cos (double2) | Cos_Double2
|
Cos (double3) | Cos_Double3
|
Cos (double4) | Cos_Double4
|
Cos (float) | Cos_Float
|
Cos (float2) | Cos_Float2
|
Cos (float3) | Cos_Float3
|
Cos (float4) | Cos_Float4
|
Inputs
N (Pseudo-Generic)
Input value.
Outputs
* (Pseudo-Generic)
Cosine of N.