Angle and trigonometry functions (Section 8.1 of GLSL 1.20.8 specification).
|
Functions |
|
template<typename T> |
| detail::_xvec4< T > | acos (const detail::_xvec4< T > &x) |
| | Arc cosine. Returns an angle whose sine is x. The range of values returned by this function is [0, PI]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | acos (const detail::_xvec3< T > &x) |
| | Arc cosine. Returns an angle whose sine is x. The range of values returned by this function is [0, PI]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | acos (const detail::_xvec2< T > &x) |
| | Arc cosine. Returns an angle whose sine is x. The range of values returned by this function is [0, PI]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | acos (T x) |
| | Arc cosine. Returns an angle whose sine is x. The range of values returned by this function is [0, PI]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | asin (const detail::_xvec4< T > &x) |
| | Arc sine. Returns an angle whose sine is x. The range of values returned by this function is [-PI/2, PI/2]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | asin (const detail::_xvec3< T > &x) |
| | Arc sine. Returns an angle whose sine is x. The range of values returned by this function is [-PI/2, PI/2]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | asin (const detail::_xvec2< T > &x) |
| | Arc sine. Returns an angle whose sine is x. The range of values returned by this function is [-PI/2, PI/2]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | asin (T x) |
| | Arc sine. Returns an angle whose sine is x. The range of values returned by this function is [-PI/2, PI/2]. Results are undefined if |x| > 1. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | atan (const detail::_xvec4< T > &y_over_x) |
| | Arc tangent. Returns an angle whose tangent is y_over_x. The range of values returned by this function is [-PI/2, PI/2]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | atan (const detail::_xvec3< T > &y_over_x) |
| | Arc tangent. Returns an angle whose tangent is y_over_x. The range of values returned by this function is [-PI/2, PI/2]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | atan (const detail::_xvec2< T > &y_over_x) |
| | Arc tangent. Returns an angle whose tangent is y_over_x. The range of values returned by this function is [-PI/2, PI/2]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | atan (T y_over_x) |
| | Arc tangent. Returns an angle whose tangent is y_over_x. The range of values returned by this function is [-PI/2, PI/2]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | atan (const detail::_xvec4< T > &y, const detail::_xvec4< T > &x) |
| | Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | atan (const detail::_xvec3< T > &y, const detail::_xvec3< T > &x) |
| | Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | atan (const detail::_xvec2< T > &y, const detail::_xvec2< T > &x) |
| | Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | atan (T y, T x) |
| | Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | cos (const detail::_xvec4< T > &angle) |
| | The standard trigonometric cosine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | cos (const detail::_xvec3< T > &angle) |
| | The standard trigonometric cosine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | cos (const detail::_xvec2< T > &angle) |
| | The standard trigonometric cosine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | cos (T angle) |
| | The standard trigonometric cosine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | degrees (const detail::_xvec4< T > &radians) |
| | Converts radians to degrees and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | degrees (const detail::_xvec3< T > &radians) |
| | Converts radians to degrees and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | degrees (const detail::_xvec2< T > &radians) |
| | Converts radians to degrees and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | degrees (T radians) |
| | Converts radians to degrees and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | radians (const detail::_xvec4< T > °rees) |
| | Converts degrees to radians and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | radians (const detail::_xvec3< T > °rees) |
| | Converts degrees to radians and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | radians (const detail::_xvec2< T > °rees) |
| | Converts degrees to radians and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | radians (T degrees) |
| | Converts degrees to radians and returns the result. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | sin (const detail::_xvec4< T > &angle) |
| | The standard trigonometric sine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | sin (const detail::_xvec3< T > &angle) |
| | The standard trigonometric sine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | sin (const detail::_xvec2< T > &angle) |
| | The standard trigonometric sine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | sin (T angle) |
| | The standard trigonometric sine function. The values returned by this function will range from [-1, 1]. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec4< T > | tan (const detail::_xvec4< T > &angle) |
| | The standard trigonometric tangent function. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec3< T > | tan (const detail::_xvec3< T > &angle) |
| | The standard trigonometric tangent function. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| detail::_xvec2< T > | tan (const detail::_xvec2< T > &angle) |
| | The standard trigonometric tangent function. (From GLSL 1.10.59 specification).
|
|
template<typename T> |
| T | tan (T angle) |
| | The standard trigonometric tangent function. (From GLSL 1.10.59 specification).
|
Angle and trigonometry functions (Section 8.1 of GLSL 1.20.8 specification).