suanPan
Quaternion< T > Class Template Reference

An Quaternion class. More...

#include <Quaternion.hpp>

Collaboration diagram for Quaternion< T >:

Public Member Functions

 Quaternion ()
 
 Quaternion (T, T, T, T)
 
 Quaternion (T, const Col< T > &)
 
 Quaternion (T, Col< T > &&)
 
const Treal () const
 
const Col< T > & imag () const
 
T norm () const
 
Quaternionnormalise ()
 
Quaternion inv () const
 
Quaternion conj () const
 
Quaternion operator+ (const Quaternion &) const
 
Quaternionoperator+= (const Quaternion &)
 
Quaternion operator- (const Quaternion &) const
 
Quaternionoperator-= (const Quaternion &)
 
Quaternion operator* (const Quaternion &) const
 
Quaternionoperator*= (const Quaternion &)
 
Quaternion operator/ (const Quaternion &) const
 
Quaternionoperator/= (const Quaternion &)
 
void print () const
 
Mat< Toperator* (const Mat< T > &) const
 
Mat< Tto_mat () const
 
Col< Tto_pseudo () const
 

Friends

bool operator== (const Quaternion &A, const Quaternion &B)
 
Quaternion operator- (const Quaternion &A)
 
Quaternion operator- (Quaternion &&A)
 

Detailed Description

template<typename T>
class Quaternion< T >

An Quaternion class.

Author
tlc
Date
05/09/2020
Version
0.1.0

Friends And Related Function Documentation

◆ operator- [1/2]

template<typename T >
Quaternion operator- ( const Quaternion< T > &  A)
friend

◆ operator- [2/2]

template<typename T >
Quaternion operator- ( Quaternion< T > &&  A)
friend

◆ operator==

template<typename T >
bool operator== ( const Quaternion< T > &  A,
const Quaternion< T > &  B 
)
friend

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