Functions |
template<typename genType > |
genType | acos (genType const &x) |
template<typename genType > |
genType | acosh (genType const &x) |
template<typename genType > |
genType | asin (genType const &x) |
template<typename genType > |
genType | asinh (genType const &x) |
template<typename genType > |
genType | atan (genType const &y, genType const &x) |
template<typename genType > |
genType | atan (genType const &y_over_x) |
template<typename genType > |
genType | atanh (genType const &x) |
template<typename genType > |
genType | cos (genType const &angle) |
template<typename genType > |
genType | cosh (genType const &angle) |
template<typename genType > |
genType | degrees (genType const &radians) |
template<typename genType > |
genType | radians (genType const °rees) |
template<typename genType > |
genType | sin (genType const &angle) |
template<typename genType > |
genType | sinh (genType const &angle) |
template<typename genType > |
genType | tan (genType const &angle) |
template<typename genType > |
genType | tanh (genType const &angle) |
Detailed Description
Function parameters specified as angle are assumed to be in units of radians.
In no case will any of these functions result in a divide by zero error. If the divisor of a ratio is 0, then results will be undefined.
These all operate component-wise. The description is per component.
Function Documentation
genType glm::acos |
( |
genType const & |
x | ) |
|
genType glm::acosh |
( |
genType const & |
x | ) |
|
genType glm::asin |
( |
genType const & |
x | ) |
|
genType glm::asinh |
( |
genType const & |
x | ) |
|
genType glm::atan |
( |
genType const & |
y, |
|
|
genType const & |
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.
- Template Parameters:
-
genType | Floating-point scalar or vector types. |
- See also:
- - GLSL atan man page
-
- GLSL 4.20.8 specification, section 8.1
Referenced by glm::atan2().
genType glm::atan |
( |
genType const & |
y_over_x | ) |
|
genType glm::atanh |
( |
genType const & |
x | ) |
|
genType glm::cos |
( |
genType const & |
angle | ) |
|
genType glm::cosh |
( |
genType const & |
angle | ) |
|
genType glm::degrees |
( |
genType const & |
radians | ) |
|
genType glm::radians |
( |
genType const & |
degrees | ) |
|
genType glm::sin |
( |
genType const & |
angle | ) |
|
genType glm::sinh |
( |
genType const & |
angle | ) |
|
genType glm::tan |
( |
genType const & |
angle | ) |
|
genType glm::tanh |
( |
genType const & |
angle | ) |
|