You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
## Sin
|
|
|
|
Return the sine of the parameter
|
|
|
|
|
|
|
|
```glsl
|
|
|
|
float sin(float angle)
|
|
|
|
vec2 sin(vec2 angle)
|
|
|
|
vec3 sin(vec3 angle)
|
|
|
|
vec4 sin(vec4 angle)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
```angle``` Specify the quantity, in radians, of which to return the sine.
|
|
|
|
|
|
|
|
### Description
|
|
|
|
```sin()``` returns the trigonometric sine of angle.
|
|
|
|
|
|
|
|
<div class="simpleFunction" data="y = sin(x); "></div>
|
|
|
|
|
|
|
|
### See Also
|
|
|
|
[acos](index.html#acos.md), [cos](index.html#cos.md), [asin](index.html#asin.md), [tan](index.html#tan.md), [atan](index.html#atan.md), [Chapter 05: Shaping Functions](../05/)
|