thebookofshaders/glossary/sin
2020-07-30 16:34:42 +07:00
..
README-vi.md Translate the glossary section 2020-07-30 16:34:42 +07:00
README.md Remove trailing whitespaces 2017-08-23 11:34:44 +02:00

Sin

Return the sine of the parameter

Declaration

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.

See Also

acos, cos, asin, tan, atan, Chapter 05: Shaping Functions