Package kr.ac.konkuk.ccslab.cm.entity
Class CMQuat
java.lang.Object
kr.ac.konkuk.ccslab.cm.entity.CMQuat
This class represents orientation information of an object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setQuat
(float w, float x, float y, float z) sets quarternion of the orientation object.
-
Field Details
-
m_w
public float m_w -
m_x
public float m_x -
m_y
public float m_y -
m_z
public float m_z
-
-
Constructor Details
-
CMQuat
public CMQuat()creates a default orientation object.
The quarternion (x,y,z,w) is set to (0.0f, 0.0f, 0.0f, 0.0f) -
CMQuat
public CMQuat(float w, float x, float y, float z) creates an orientation object and set the quarternion.
The quarternion is set to (x,y,z,w).- Parameters:
w
- - the rotation anglex
- - the x axis for rotationy
- - the y axis for rotationz
- - the z axis for rotation
-
-
Method Details
-
setQuat
public void setQuat(float w, float x, float y, float z) sets quarternion of the orientation object.- Parameters:
w
- - the rotation anglex
- - the x axis for rotationy
- - the y axis for rotationz
- - the z axis for rotation
-