| Bsoft 2.0.5 Bernard's software package

Public Member Functions | List of all members
Quaternion Class Reference

`#include <Quaternion.h>`

## Public Member Functions
| Quaternion ()
| Quaternion (const double scalar)
| Quaternion (const double scalar, const double x, const double y, const double z)
| Quaternion (const Quaternion &q)
template<typename Type >
| Quaternion (const Vector3< Type > &vector)
template<typename Type >
| Quaternion (const double scalar, const Vector3< Type > &vector)
template<typename Type >
| Quaternion (Vector3< Type > &axis, double angle)
template<typename Type1 , typename Type2 >
| Quaternion (Vector3< Type1 > &from_vec, Vector3< Type2 > &to_vec)
Quaternion | operator= (const Quaternion q)
Quaternion | operator- ()
Quaternion | operator+= (const Quaternion &q)
Quaternion | operator+ (const Quaternion &q)
Quaternion | operator-= (const Quaternion &q)
Quaternion | operator- (const Quaternion &q)
Quaternion | operator *= (const Quaternion &q)
Quaternion | operator * (const Quaternion &q)
Quaternion | operator/= (const double d)
Quaternion | operator/ (const double d)
double & | operator[] (long i)
double | scalar ()
double | angle ()
Vector3< double > | axis ()
double | norm ()
double | norm2 ()
double | normalize ()
Quaternion | conj ()
double | invert ()
Quaternion | inverse ()
Quaternion | rotate (const Quaternion &point)

## Detailed Description

Definition at line 25 of file Quaternion.h.

## Constructor & Destructor Documentation

## ◆ Quaternion() [1/8]

Quaternion::Quaternion | ( |  | ) |
| inline

Definition at line 43 of file Quaternion.h.

## ◆ Quaternion() [2/8]

Quaternion::Quaternion | ( | const double | scalar | ) |
| inline

Definition at line 44 of file Quaternion.h.

## ◆ Quaternion() [3/8]

Quaternion::Quaternion | ( | const double | scalar,
|  | const double | x,
|  | const double | y,
|  | const double | z
| ) |  |
| inline

Definition at line 47 of file Quaternion.h.

## ◆ Quaternion() [4/8]

Quaternion::Quaternion | ( | const Quaternion & | q | ) |
| inline

Definition at line 51 of file Quaternion.h.

## ◆ Quaternion() [5/8]

template<typename Type >

Quaternion::Quaternion | ( | const Vector3< Type > & | vector | ) |
| inline

Definition at line 55 of file Quaternion.h.

## ◆ Quaternion() [6/8]

template<typename Type >

Quaternion::Quaternion | ( | const double | scalar,
|  | const Vector3< Type > & | vector
| ) |  |
| inline

Definition at line 61 of file Quaternion.h.

## ◆ Quaternion() [7/8]

template<typename Type >

Quaternion::Quaternion | ( | Vector3< Type > & | axis,
|  | double | angle
| ) |  |
| inline

Definition at line 67 of file Quaternion.h.

## ◆ Quaternion() [8/8]

template<typename Type1 , typename Type2 >

Quaternion::Quaternion | ( | Vector3< Type1 > & | from_vec,
|  | Vector3< Type2 > & | to_vec
| ) |  |
| inline

Definition at line 71 of file Quaternion.h.

## Member Function Documentation

## ◆ angle()

double Quaternion::angle | ( |  | ) |
| inline

Definition at line 143 of file Quaternion.h.

## ◆ axis()

Vector3<double> Quaternion::axis | ( |  | ) |
| inline

Definition at line 144 of file Quaternion.h.

## ◆ conj()

Quaternion Quaternion::conj | ( |  | ) |
| inline

Definition at line 160 of file Quaternion.h.

## ◆ inverse()

Quaternion Quaternion::inverse | ( |  | ) |
| inline

Definition at line 168 of file Quaternion.h.

## ◆ invert()

double Quaternion::invert | ( |  | ) |
| inline

Definition at line 161 of file Quaternion.h.

## ◆ norm()

double Quaternion::norm | ( |  | ) |
| inline

Definition at line 149 of file Quaternion.h.

## ◆ norm2()

double Quaternion::norm2 | ( |  | ) |
| inline

Definition at line 150 of file Quaternion.h.

## ◆ normalize()

double Quaternion::normalize | ( |  | ) |
| inline

Definition at line 151 of file Quaternion.h.

## ◆ operator *()

Quaternion Quaternion::operator * | ( | const Quaternion & | q | ) |
| inline

Definition at line 117 of file Quaternion.h.

## ◆ operator *=()

Quaternion Quaternion::operator *= | ( | const Quaternion & | q | ) |
| inline

Definition at line 113 of file Quaternion.h.

## ◆ operator+()

Quaternion Quaternion::operator+ | ( | const Quaternion & | q | ) |
| inline

Definition at line 101 of file Quaternion.h.

## ◆ operator+=()

Quaternion Quaternion::operator+= | ( | const Quaternion & | q | ) |
| inline

Definition at line 97 of file Quaternion.h.

## ◆ operator-() [1/2]

Quaternion Quaternion::operator- | ( |  | ) |
| inline

Definition at line 93 of file Quaternion.h.

## ◆ operator-() [2/2]

Quaternion Quaternion::operator- | ( | const Quaternion & | q | ) |
| inline

Definition at line 109 of file Quaternion.h.

## ◆ operator-=()

Quaternion Quaternion::operator-= | ( | const Quaternion & | q | ) |
| inline

Definition at line 105 of file Quaternion.h.

## ◆ operator/()

Quaternion Quaternion::operator/ | ( | const double | d | ) |
| inline

Definition at line 132 of file Quaternion.h.

## ◆ operator/=()

Quaternion Quaternion::operator/= | ( | const double | d | ) |
| inline

Definition at line 125 of file Quaternion.h.

## ◆ operator=()

Quaternion Quaternion::operator= | ( | const Quaternion | q | ) |
| inline

Definition at line 89 of file Quaternion.h.

## ◆ operator[]()

double& Quaternion::operator[] | ( | long | i | ) |
| inline

Definition at line 137 of file Quaternion.h.

## ◆ rotate()

Quaternion Quaternion::rotate | ( | const Quaternion & | point | ) |
| inline

Definition at line 173 of file Quaternion.h.

## ◆ scalar()

double Quaternion::scalar | ( |  | ) |
| inline

Definition at line 142 of file Quaternion.h.

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

- /Users/bernard/b20/bsoft/include/Quaternion.h