class Sp_Quat

A quaternion: It is equivalent to a rotation matrix.

Public Methods

[more] Sp_Quat()
basic constructor
[more] Sp_Quat(float r1, float x1, float y1, float z1)
constrcutor by float
[more] Sp_Quat(const Sp_Axis &axe, const float angle)
Constructor by an axis and an angle
[more]void Null()
Set the quaternion to be null
[more]void Id()
Set the quaternion to be Identity
[more]void Norme()
Make norme to 1
[more]float ComputeNorme() const
Compute Norme
[more]Sp_Mat4 Mat4() const
Give his equivalent matrix
[more]void ComposedBy(Sp_Axis &, float &angle) const
Give his axe & angle
[more]Sp_Quat Inverse() const
Inverse
[more]Sp_Quat operator*(const Sp_Quat &) const
Multiplication by another quaternion
[more]void Print()
Print


Documentation

A quaternion: It is equivalent to a rotation matrix. Warning: code not tested
o Sp_Quat()
basic constructor

o Sp_Quat(float r1, float x1, float y1, float z1)
constrcutor by float

o Sp_Quat(const Sp_Axis &axe, const float angle)
Constructor by an axis and an angle

ovoid Null()
Set the quaternion to be null

ovoid Id()
Set the quaternion to be Identity

ovoid Norme()
Make norme to 1

ofloat ComputeNorme() const
Compute Norme

oSp_Mat4 Mat4() const
Give his equivalent matrix

ovoid ComposedBy(Sp_Axis &, float &angle) const
Give his axe & angle

oSp_Quat Inverse() const
Inverse

oSp_Quat operator*(const Sp_Quat &) const
Multiplication by another quaternion

ovoid Print()
Print


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.