Points&Forces (core)
Software tools facilitating the task of surveying architecture
Public Member Functions | Friends | List of all members
a_quaternion Class Reference

#include <a_quaternion.h>

Public Member Functions

 a_quaternion ()
 
 a_quaternion (double r)
 
 a_quaternion (double r, double i, double j, double k)
 
 a_quaternion (const a_quaternion &b)
 
double r () const
 
double i () const
 
double j () const
 
double k () const
 
void r (double r)
 
void i (double i)
 
void j (double j)
 
void k (double k)
 
double norm () const
 
double abs () const
 
a_quaternionoperator= (const a_quaternion &b)
 
a_quaternionnegate ()
 
a_quaternionconjugate ()
 
a_quaternionsquare ()
 
a_quaternioninvert ()
 
a_quaternionoperator+= (const a_quaternion &b)
 
a_quaternion operator+ (const a_quaternion &b)
 
a_quaternionoperator-= (const a_quaternion &b)
 
a_quaternion operator- (const a_quaternion &b)
 
a_quaternionoperator*= (const double b)
 
a_quaternion operator* (const double b)
 
a_quaternionoperator/= (const double b)
 
a_quaternion operator/ (const double b)
 
a_quaternionoperator*= (const a_quaternion &b)
 
a_quaternion operator* (const a_quaternion &b)
 
a_quaternionoperator/= (const a_quaternion &b)
 
a_quaternion operator/ (const a_quaternion &b)
 

Friends

std::ostream & operator<< (std::ostream &ost, const a_quaternion &x)
 

Detailed Description

Definition at line 19 of file a_quaternion.h.

Constructor & Destructor Documentation

◆ a_quaternion() [1/4]

a_quaternion::a_quaternion ( )
inline

Definition at line 22 of file a_quaternion.h.

◆ a_quaternion() [2/4]

a_quaternion::a_quaternion ( double  r)
inline

Definition at line 23 of file a_quaternion.h.

◆ a_quaternion() [3/4]

a_quaternion::a_quaternion ( double  r,
double  i,
double  j,
double  k 
)
inline

Definition at line 24 of file a_quaternion.h.

◆ a_quaternion() [4/4]

a_quaternion::a_quaternion ( const a_quaternion b)
inline

Definition at line 25 of file a_quaternion.h.

Member Function Documentation

◆ abs()

double a_quaternion::abs ( ) const

Definition at line 11 of file a_quaternion.cxx.

+ Here is the call graph for this function:

◆ conjugate()

a_quaternion & a_quaternion::conjugate ( )

Definition at line 25 of file a_quaternion.cxx.

+ Here is the caller graph for this function:

◆ i() [1/2]

double a_quaternion::i ( ) const
inline

Definition at line 28 of file a_quaternion.h.

+ Here is the caller graph for this function:

◆ i() [2/2]

void a_quaternion::i ( double  i)
inline

Definition at line 33 of file a_quaternion.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ invert()

a_quaternion & a_quaternion::invert ( )

Definition at line 43 of file a_quaternion.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ j() [1/2]

double a_quaternion::j ( ) const
inline

Definition at line 29 of file a_quaternion.h.

+ Here is the caller graph for this function:

◆ j() [2/2]

void a_quaternion::j ( double  j)
inline

Definition at line 34 of file a_quaternion.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ k() [1/2]

double a_quaternion::k ( ) const
inline

Definition at line 30 of file a_quaternion.h.

+ Here is the caller graph for this function:

◆ k() [2/2]

void a_quaternion::k ( double  k)
inline

Definition at line 35 of file a_quaternion.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ negate()

a_quaternion & a_quaternion::negate ( )

Definition at line 16 of file a_quaternion.cxx.

+ Here is the caller graph for this function:

◆ norm()

double a_quaternion::norm ( ) const

Definition at line 6 of file a_quaternion.cxx.

+ Here is the caller graph for this function:

◆ operator*() [1/2]

a_quaternion a_quaternion::operator* ( const a_quaternion b)

Definition at line 116 of file a_quaternion.cxx.

◆ operator*() [2/2]

a_quaternion a_quaternion::operator* ( const double  b)

Definition at line 80 of file a_quaternion.cxx.

◆ operator*=() [1/2]

a_quaternion & a_quaternion::operator*= ( const a_quaternion b)

Definition at line 97 of file a_quaternion.cxx.

◆ operator*=() [2/2]

a_quaternion & a_quaternion::operator*= ( const double  b)

Definition at line 75 of file a_quaternion.cxx.

◆ operator+()

a_quaternion a_quaternion::operator+ ( const a_quaternion b)

Definition at line 58 of file a_quaternion.cxx.

◆ operator+=()

a_quaternion & a_quaternion::operator+= ( const a_quaternion b)

Definition at line 53 of file a_quaternion.cxx.

◆ operator-()

a_quaternion a_quaternion::operator- ( const a_quaternion b)

Definition at line 69 of file a_quaternion.cxx.

◆ operator-=()

a_quaternion & a_quaternion::operator-= ( const a_quaternion b)

Definition at line 64 of file a_quaternion.cxx.

◆ operator/() [1/2]

a_quaternion a_quaternion::operator/ ( const a_quaternion b)

Definition at line 128 of file a_quaternion.cxx.

◆ operator/() [2/2]

a_quaternion a_quaternion::operator/ ( const double  b)

Definition at line 91 of file a_quaternion.cxx.

◆ operator/=() [1/2]

a_quaternion & a_quaternion::operator/= ( const a_quaternion b)

Definition at line 122 of file a_quaternion.cxx.

+ Here is the call graph for this function:

◆ operator/=() [2/2]

a_quaternion & a_quaternion::operator/= ( const double  b)

Definition at line 86 of file a_quaternion.cxx.

◆ operator=()

a_quaternion& a_quaternion::operator= ( const a_quaternion b)
inline

Definition at line 40 of file a_quaternion.h.

◆ r() [1/2]

double a_quaternion::r ( ) const
inline

Definition at line 27 of file a_quaternion.h.

+ Here is the caller graph for this function:

◆ r() [2/2]

void a_quaternion::r ( double  r)
inline

Definition at line 32 of file a_quaternion.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ square()

a_quaternion & a_quaternion::square ( )

Definition at line 33 of file a_quaternion.cxx.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ost,
const a_quaternion x 
)
friend

Definition at line 155 of file a_quaternion.cxx.


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