| Bsoft 2.0.5 Bernard's software package

Quaternion.cpp
Go to the documentation of this file.
1
9 #include "Quaternion.h"
10 #include "utilities.h"
11
12 // Declaration of global variables
13 extern int verbose; // Level of output to the screen
14
15 ostream& operator<<(ostream& output, Quaternion& q) {
16 output.setf(ios::fixed, ios::floatfield);
17 output.precision(4);
18 output << q.scalar() << tab << q.axis();
19 return output;
20 }
21
22
23
utilities.h
Header file for general utilities.
operator<<
ostream & operator<<(ostream &output, Quaternion &q)
Definition: Quaternion.cpp:15
Quaternion::scalar
double scalar()
Definition: Quaternion.h:142
Quaternion
Definition: Quaternion.h:25
Quaternion.h
Class for quaternions.
verbose
int verbose
Quaternion::axis
Vector3< double > axis()
Definition: Quaternion.h:144
tab
ostream & tab(ostream &out)
Definition: utilities.cpp:21