|
fennec
|
the Trigonometry More...
#include <fennec/math/detail/_math.h>#include <fennec/math/vector.h>#include <fennec/lang/types.h>Go to the source code of this file.
Functions | |
Angle Conversions | |
| template<typename genType > | |
| constexpr genType | fennec::radians (genType degrees) |
| Converts \(degrees\) to \(radians\), i.e., \(degrees\cdot\frac{180}{\pi}\). | |
| template<typename genType > | |
| constexpr genType | fennec::degrees (genType radians) |
| Converts \(radians\) to \(degrees\), i.e., \(radians\cdot\frac{\pi}{180}\). | |
Trigonometric Functions | |
| template<typename genType > | |
| constexpr genType | fennec::sin (genType x) |
| The standard trigonometric sine. | |
| template<typename genType > | |
| constexpr genType | fennec::cos (genType x) |
| The Standard Trigonometric Cosine. | |
| template<typename genType > | |
| constexpr genType | fennec::tan (genType x) |
| The Standard Trigonometric Tangent. | |
Inverse Trigonometric Functions | |
| template<typename genType > | |
| constexpr genType | fennec::asin (genType x) |
| Arc Sine. Returns an angle \(\theta\) whose sine is /a x. | |
| template<typename genType > | |
| constexpr genType | fennec::acos (genType x) |
| Arc Cosine. Returns an angle \(\theta\) whose cosine is /a x. | |
| template<typename genType > | |
| constexpr genType | fennec::atan (genType y_over_x) |
| Arc Tangent. Returns an angle \(\theta\) whose tangent is /a y_over_x. | |
| template<typename genType > | |
| constexpr genType | fennec::atan (genType y, genType x) |
| Arc Tangent. Returns an angle whose tangent is \(\frac{y}{x}\). | |
Hyperbolic Functions | |
| template<typename genType > | |
| constexpr genType | fennec::sinh (genType x) |
| Returns the Hyperbolic Sine Function, \(\frac{{e}^{x}-{e}^{-x}}{2}\). | |
| template<typename genType > | |
| constexpr genType | fennec::cosh (genType x) |
| Returns the Hyperbolic Cosine Function, \(\frac{{e}^{x}+{e}^{-x}}{2}\). | |
| template<typename genType , size_t... i> | |
| constexpr genType | fennec::tanh (genType x) |
| Returns the Hyperbolic Tangent Function, \(\frac{\text{sinh}(x)}{\text{cosh}(x)}\). | |
Inverse Hyperbolic Functions | |
| template<typename genType , size_t... i> | |
| constexpr genType | fennec::asinh (genType x) |
| The Inverse Hyperbolic Sine Function. | |
| template<typename genType , size_t... i> | |
| constexpr genType | fennec::acosh (genType x) |
| The Inverse Hyperbolic Cosine Function. | |
| template<typename genType , size_t... i> | |
| constexpr genType | fennec::atanh (genType x) |
| The Inverse Hyperbolic Tangent Function. | |
|
constexpr |
Converts \(degrees\) to \(radians\), i.e., \(degrees\cdot\frac{180}{\pi}\)
| genType | floating point type |
| degrees | the angle \(\theta\) in \(degrees\) |
|
constexpr |
Converts \(radians\) to \(degrees\), i.e., \(radians\cdot\frac{\pi}{180}\)
| genType | floating point type |
| radians | the angle \(\theta\) in \(radians\) |
|
constexpr |
The standard trigonometric sine
| genType | floating point type |
| x | the angle \(\theta\) in \(radians\) |
|
constexpr |
The Standard Trigonometric Cosine
| genType | floating point type |
| x | the angle \(\theta\) in \(radians\) |
|
constexpr |
The Standard Trigonometric Tangent
| genType | floating point type |
| x | The Angle \(\theta\) in \(radians\) |
|
constexpr |
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\).
| genType | floating point type |
| x | The Sine Value produced by \(\theta\) |
|
constexpr |
Arc Cosine. The range of values returned by this functions is \(\left[0,\pi\right]\). Results are undefined if \(\left|x\right|\,>\,1\).
| genType | floating point type |
| x | The Cosine Value produced by \(\theta\) |
|
constexpr |
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\).
| genType | floating point type |
| y_over_x | The Cosine Value produced by \(\theta\) |
|
constexpr |
Arc Tangent. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this functions is \(\left[-\pi,\pi\right]\)
| genType | floating point type |
| y | The Sine Value produced by \(\theta\) |
| x | The Cosine Value produced by \(\theta\) |
|
constexpr |
| genType | floating point type |
| x | The Hyperbolic Angle \(\alpha\) |
|
constexpr |
| x | The Hyperbolic Angle \(\alpha\) |
|
constexpr |
| x | The Hyperbolic Angle \(\alpha\) |
|
constexpr |
The Inverse Hyperbolic Sine Function
| x | the hyperbolic angle \(\alpha\) |
|
constexpr |
The Inverse Hyperbolic Cosine Function
| x | the hyperbolic angle \(\alpha\) |
|
constexpr |
The Inverse Hyperbolic Tangent Function
| x | The Hyperbolic Angle \(\alpha\) |