My Project: openb3dlib.mod/openb3d/src/quaternion.h Source File

My Project

quaternion.h
Go to the documentation of this file.
1 /*
2 * quaternion.h
3 * iminib3d
4 *
5 * Created by Simon Harrison.
6 * Copyright Si Design. All rights reserved.
7 *
8 */
9
10 #ifndef QUATERNION_H
11 #define QUATERNION_H
12
13 #include "matrix.h"
14
15 class Quaternion{
16
17 public:
18 float x,y,z,w;
19 };
20
21
22 void QuatToMat(float w,float x,float y,float z,Matrix& mat);
23 void QuatToEuler(float w,float x,float y,float z,float &pitch,float &yaw,float &roll);
24 void Slerp(float Ax,float Ay,float Az,float Aw,float Bx,float By,float Bz,float Bw,float& Cx,float& Cy,float& Cz,float& Cw,float t);
25
26 #endif
Quaternion::z
float z
Definition: quaternion.h:18
Quaternion
Definition: quaternion.h:15
Quaternion::w
float w
Definition: quaternion.h:18
Quaternion::y
float y
Definition: quaternion.h:18
QuatToMat
void QuatToMat(float w, float x, float y, float z, Matrix &mat)
Definition: quaternion.cpp:15
matrix.h
QuatToEuler
void QuatToEuler(float w, float x, float y, float z, float &pitch, float &yaw, float &roll)
Definition: quaternion.cpp:54
Matrix
Definition: matrix.h:18
Slerp
void Slerp(float Ax, float Ay, float Az, float Aw, float Bx, float By, float Bz, float Bw, float &Cx, float &Cy, float &Cz, float &Cw, float t)
Definition: quaternion.cpp:103
Quaternion::x
float x
Definition: quaternion.h:18