Class CMQuat

java.lang.Object
kr.ac.konkuk.ccslab.cm.entity.CMQuat

public class CMQuat extends Object
This class represents orientation information of an object.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
     
    float
     
    float
     
    float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    creates a default orientation object.
    CMQuat(float w, float x, float y, float z)
    creates an orientation object and set the quarternion.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setQuat(float w, float x, float y, float z)
    sets quarternion of the orientation object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 angle
      x - - the x axis for rotation
      y - - the y axis for rotation
      z - - 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 angle
      x - - the x axis for rotation
      y - - the y axis for rotation
      z - - the z axis for rotation