MercuryDPM  Alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Quarternion.cc File Reference
#include "Quarternion.h"
#include "Vector.h"
#include "Matrix.h"
#include "ExtendedMath.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const Quarternion &q)
 
std::istream & operator>> (std::istream &is, Quarternion &q)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Quarternion q 
)

Definition at line 173 of file Quarternion.cc.

References Quarternion::w_, Quarternion::x_, Quarternion::y_, and Quarternion::z_.

174 {
175  os << q.x_ << " " << q.y_ << " " << q.z_ << " " << q.w_;
176  return os;
177 }
Mdouble z_
Definition: Quarternion.h:114
Mdouble y_
Definition: Quarternion.h:114
Mdouble x_
Definition: Quarternion.h:114
Mdouble w_
Definition: Quarternion.h:114
std::istream& operator>> ( std::istream &  is,
Quarternion q 
)

Definition at line 179 of file Quarternion.cc.

References Quarternion::w_, Quarternion::x_, Quarternion::y_, and Quarternion::z_.

180 {
181  is >> q.x_ >> q.y_ >> q.z_ >> q.w_;
182  return is;
183 }
Mdouble z_
Definition: Quarternion.h:114
Mdouble y_
Definition: Quarternion.h:114
Mdouble x_
Definition: Quarternion.h:114
Mdouble w_
Definition: Quarternion.h:114