Graphite  Version 3
An experimental 3D geometry processing program
quaternion.h File Reference

a class that represents quaternions (eases manipulation of 3D rotations) More...

#include <geogram/basic/common.h>
#include <geogram/basic/geometry.h>
#include <iostream>

Go to the source code of this file.

Classes

class  GEO::Quaternion
 Quaternions are useful for representing rotations. More...
 

Namespaces

 GEO
 Global Vorpaline namespace.
 

Functions

std::ostream & GEO::operator<< (std::ostream &out, const Quaternion &q)
 Writes a Quaternion to a stream. More...
 
std::istream & GEO::operator>> (std::istream &in, Quaternion &q)
 Reads a Quaternion from a stream. More...
 
Quaternion GEO::operator+ (const Quaternion &a, const Quaternion &b)
 Computes the sum of two Quaternion. More...
 
Quaternion GEO::operator- (const Quaternion &a, const Quaternion &b)
 Computes the difference between two Quaternion. More...
 
Quaternion GEO::operator- (const Quaternion &a)
 Computes the opposite of a Quaternion. More...
 
Quaternion GEO::operator* (const Quaternion &a, const Quaternion &b)
 Computes the product of two Quaternion. More...
 
Quaternion GEO::operator* (const Quaternion &a, double t)
 Computes the product of a Quaternion and a scalar. More...
 
Quaternion GEO::operator* (double t, const Quaternion &a)
 Computes the product of a scalar and a Quaternion. More...
 

Detailed Description

a class that represents quaternions (eases manipulation of 3D rotations)

Definition in file quaternion.h.