|
fennec
|
The Trigonometric Functions defined in the OpenGL 4.6 Shading Language Specification.
| Syntax | Description | ||||
|---|---|---|---|---|---|
genFType degrees(genFType x) |
Converts \(radians\) to \(degrees\), i.e., \(radians\cdot\frac{\pi}{180}\).
Converts \(radians\) to \(degrees\), i.e., \(radians\cdot\frac{\pi}{180}\)
| ||||
genFType radians(genFType x) |
Converts \(degrees\) to \(radians\), i.e., \(degrees\cdot\frac{180}{\pi}\).
Converts \(degrees\) to \(radians\), i.e., \(degrees\cdot\frac{180}{\pi}\)
|
| Syntax | Description | ||||
|---|---|---|---|---|---|
genFType sin(genFType x) |
The standard trigonometric sine.
The standard trigonometric sine
| ||||
genFType cos(genFType x) |
The Standard Trigonometric Cosine.
The Standard Trigonometric Cosine
| ||||
genFType tan(genFType x) |
The Standard Trigonometric Tangent.
The Standard Trigonometric Tangent
| ||||
genFType asin(genFType x) |
Arc Sine. Returns an angle \(\theta\) whose sine is /a x.
Arc Sine. The range of values returned by this functions is \(\left[-\pi/2,\pi/2\right]\). Results are undefined if \(\left|x\right|\,>\,1\).
| ||||
genFType acos(genFType x) |
Arc Cosine. Returns an angle \(\theta\) whose cosine is /a x.
Arc Cosine. The range of values returned by this functions is \(\left[0,\pi\right]\). Results are undefined if \(\left|x\right|\,>\,1\).
| ||||
genFType atan(genFType x) |
Arc Tangent. Returns an angle \(\theta\) whose tangent is /a y_over_x.
Arc Tangent. The range of values returned by this functions is \(\left[\frac{-\pi}{2},\frac{\pi}{2}\right]\). Results are undefined if \(\left|x\right|\,>\,1\).
|
| Syntax | Description | ||||
|---|---|---|---|---|---|
genFType sinh(genFType x) |
Returns the Hyperbolic Sine Function, \(\frac{{e}^{x}-{e}^{-x}}{2}\).
| ||||
genFType cosh(genFType x) |
Returns the Hyperbolic Cosine Function, \(\frac{{e}^{x}+{e}^{-x}}{2}\).
| ||||
genFType tanh(genFType x) |
Returns the Hyperbolic Tangent Function, \(\frac{\text{sinh}(x)}{\text{cosh}(x)}\).
| ||||
genFType asinh(genFType x) |
The Inverse Hyperbolic Sine Function.
The Inverse Hyperbolic Sine Function
| ||||
genFType acosh(genFType x) |
The Inverse Hyperbolic Cosine Function.
The Inverse Hyperbolic Cosine Function
| ||||
genFType atanh(genFType x) |
The Inverse Hyperbolic Tangent Function.
The Inverse Hyperbolic Tangent Function
|