Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
MyUtils.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "stdafx.h"
4 #include "OgreMath.h"
5 
10 namespace util
11 {
13  #define PI 3.141596f
14 
20  Ogre::Matrix3 RotationMatrixXYZ(Ogre::Vector3& orientation);
21 
27  Ogre::Matrix3 xRotationMatrix3(float angle);
28 
34  Ogre::Matrix3 yRotationMatrix3(float angle);
35 
41  Ogre::Matrix3 zRotationMatrix3(float angle);
42 
48  Ogre::Matrix4 RotationMatrixXYZW(Ogre::Vector3& orientation);
49 
55  Ogre::Matrix4 xRotationMatrix4(float angle);
56 
62  Ogre::Matrix4 yRotationMatrix4(float angle);
63 
69  Ogre::Matrix4 zRotationMatrix4(float angle);
70 
77  Ogre::Quaternion covertRotateToQuaternion(Ogre::Vector3 rotationAxis, float rotateAngle);
78 
83  Ogre::Quaternion covertRotateToQuaternion(Ogre::Vector3 rotation);
84 
90  float convertAngleToRadian(float angle);
91 
97  float convertRadianToDegree(float angle);
98 
105  Ogre::Real angleCheck(Ogre::Real angle, Ogre::Real angleChange);
106 
113  Ogre::Real getAngleTOA(Ogre::Real opp, Ogre::Real adj);
114 
123  Ogre::Quaternion aim(Ogre::Vector3 target, Ogre::Vector3 lastTarget, Ogre::Vector3 position, Ogre::Vector3 rotateAxis);
124 }
Ogre::Matrix3 RotationMatrixXYZ(Ogre::Vector3 &orientation)
Definition: MyUtils.cpp:8
Ogre::Matrix4 zRotationMatrix4(float angle)
Definition: MyUtils.cpp:137
float convertRadianToDegree(float angle)
Definition: MyUtils.cpp:203
A namespace to contain utility functions.
Definition: MyUtils.cpp:5
Ogre::Quaternion aim(Ogre::Vector3 target, Ogre::Vector3 lastTarget, Ogre::Vector3 position, Ogre::Vector3 rotateAxis)
Definition: MyUtils.cpp:250
Ogre::Matrix3 yRotationMatrix3(float angle)
Definition: MyUtils.cpp:46
Ogre::Matrix4 yRotationMatrix4(float angle)
Definition: MyUtils.cpp:119
Ogre::Matrix4 xRotationMatrix4(float angle)
Definition: MyUtils.cpp:101
Ogre::Matrix3 zRotationMatrix3(float angle)
Definition: MyUtils.cpp:63
Ogre::Quaternion covertRotateToQuaternion(Ogre::Vector3 rotationAxis, float rotateAngle)
Definition: MyUtils.cpp:155
Ogre::Real getAngleTOA(Ogre::Real opp, Ogre::Real adj)
Definition: MyUtils.cpp:238
Ogre::Real angleCheck(Ogre::Real angle, Ogre::Real angleChange)
Definition: MyUtils.cpp:212
Ogre::Matrix4 RotationMatrixXYZW(Ogre::Vector3 &orientation)
Definition: MyUtils.cpp:80
float convertAngleToRadian(float angle)
Definition: MyUtils.cpp:194
Ogre::Matrix3 xRotationMatrix3(float angle)
Definition: MyUtils.cpp:29