NDEVR
API Documentation
Quaternion< t_type >

https://www.3dgep.com/understanding-quaternions/ More...

Inheritance diagram for Quaternion< t_type >:
[legend]
Collaboration diagram for Quaternion< t_type >:
[legend]

Additional Inherited Members

Public Member Functions inherited from Vector< 4, t_type >
constexpr decltype(auto) as () const
 Returns the vector as a new time of vector.
constexpr uint01 dimensionalIndex () const
 Used with template arguments MAX or MIN, Gets the dimensional index for the value that is either max or min.
constexpr t_type dimensionalValue () const
 Used with template arguments MAX or MIN, Gets the dimensional value for the value that is either max or min.
constexpr t_magnitude_type magnitude () const
 Vectors are commonly used to model forces such as wind, sea current, gravity, and electromagnetism.
constexpr t_type magnitudeSquared () const
 Vectors are commonly used to model forces such as wind, sea current, gravity, and electromagnetism.
constexpr Vector< t_dims, t_norm_type > normalized (Vector< t_dims, t_norm_type > value_if_nan=Constant< Vector< t_dims, t_norm_type > >::Invalid) const
 Gets the normalized, or unit length representation of this vector.
constexpr operator t_type & ()
 For Single dimensional objects, they may also be considered a scaler, thus allow implicit conversion from a vector to a scaler when the dimension of the vector is 1.
constexpr Vector< t_dims, t_type > operator- () const
 Negation operator.
constexpr Vector< t_dims, t_type > & operator= (const t_type &scaler)
 Assignment operator.
constexpr t_type & operator[] (uint01 dimension_index)
 Accesses the value of a certain dimension.
constexpr t_type product () const
 Returns the product, or value of each dimension multiplied together.
constexpr t_type sum () const
 Returns the sum, or value of each dimension added together.
Static Public Member Functions inherited from Vector< 4, t_type >
static constexpr uint01 NumberOfDimensions ()
 Number of dimensions in this vector class.
static constexpr t_type Type ()
 Returns the type of this class.
Protected Attributes inherited from Vector< 4, t_type >
t_type m_values [t_dims]
 The values[t dims].

Detailed Description

template<class t_type>
class Quaternion< t_type >

https://www.3dgep.com/understanding-quaternions/


Definition at line 22 of file Quaternion.hpp.


The documentation for this class was generated from the following file: