Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Quaternion Struct Reference

#include <Geometry.h>

List of all members.

Public Member Functions

 Quaternion ()
 Quaternion (double ix, double iy, double iz, double iw)
 Quaternion (const Quaternion &q)
int operator== (const Quaternion &q) const
int operator!= (const Quaternion &q) const
Quaternion operator+ (const Quaternion &q) const
Quaternion operator- (const Quaternion &q) const
Quaternion operator- () const
Quaternion operator* (double s) const
Quaternion operator/ (double s) const
Quaternionoperator= (const Quaternion &q)
Quaternionoperator+= (const Quaternion &q)
Quaternionoperator-= (const Quaternion &q)
Quaternionoperator*= (double s)
Quaternionoperator/= (double s)
double length () const
double Normalize ()

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

double x
double y
double z
double w

Detailed Description

Definition at line 237 of file Geometry.h.


Constructor & Destructor Documentation

Quaternion::Quaternion ( )
inline

Definition at line 241 of file Geometry.h.

Quaternion::Quaternion ( double  ix,
double  iy,
double  iz,
double  iw 
)
inline

Definition at line 242 of file Geometry.h.

Quaternion::Quaternion ( const Quaternion q)
inline

Definition at line 246 of file Geometry.h.


Member Function Documentation

double Quaternion::length ( ) const
inline

Definition at line 263 of file Geometry.h.

double Quaternion::Normalize ( )

Definition at line 183 of file Geometry.cpp.

int Quaternion::operator!= ( const Quaternion q) const
inline

Definition at line 249 of file Geometry.h.

Quaternion Quaternion::operator* ( double  s) const
inline

Definition at line 254 of file Geometry.h.

Quaternion& Quaternion::operator*= ( double  s)
inline

Definition at line 260 of file Geometry.h.

Quaternion Quaternion::operator+ ( const Quaternion q) const
inline

Definition at line 251 of file Geometry.h.

Quaternion& Quaternion::operator+= ( const Quaternion q)
inline

Definition at line 258 of file Geometry.h.

Quaternion Quaternion::operator- ( const Quaternion q) const
inline

Definition at line 252 of file Geometry.h.

Quaternion Quaternion::operator- ( ) const
inline

Definition at line 253 of file Geometry.h.

Quaternion& Quaternion::operator-= ( const Quaternion q)
inline

Definition at line 259 of file Geometry.h.

Quaternion Quaternion::operator/ ( double  s) const
inline

Definition at line 255 of file Geometry.h.

Quaternion& Quaternion::operator/= ( double  s)
inline

Definition at line 261 of file Geometry.h.

Quaternion& Quaternion::operator= ( const Quaternion q)
inline

Definition at line 257 of file Geometry.h.

int Quaternion::operator== ( const Quaternion q) const
inline

Definition at line 248 of file Geometry.h.

static const char* Quaternion::TYPENAME ( )
inlinestatic

Definition at line 239 of file Geometry.h.


Member Data Documentation

double Quaternion::w

Definition at line 266 of file Geometry.h.

double Quaternion::x

Definition at line 266 of file Geometry.h.

double Quaternion::y

Definition at line 266 of file Geometry.h.

double Quaternion::z

Definition at line 266 of file Geometry.h.


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