Documentation of 'georegression.struct.so.Quaternion_F32' Java class
Quaternion_F32
georegression.struct.so

Class Quaternion_F32

  • All Implemented Interfaces:
    java.io.Serializable


    public class Quaternion_F32
    extends java.lang.Object
    implements java.io.Serializable

    Specifies a 3D rotation using a quaternion. q = w + x*i + y*j + z*k, where (w,x,y,z) are the parameters of the quaternion and (i,j,k) are unit vectors representing the Cartesian axis.

    If the quaternion is a unit quaternion then the following is true:
    q = cos(theta/2) + (x*i + y*j + z*k)*sin(theta/2)
    where 'theta' is the angle of rotation, (x,y,z) is the unit axis of rotation.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      float w
      Describes the angle of rotation.
      float x
      Axis of rotation
      float y
      Axis of rotation
      float z
      Axis of rotation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void normalize()
      Converts the quaternion into a unit quaternion.
      void set(float w, float x, float y, float z) 
      void set(Quaternion_F32 quaternion) 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • w

        public float w
        Describes the angle of rotation. See above for how it is encoded.
      • x

        public float x
        Axis of rotation
      • y

        public float y
        Axis of rotation
      • z

        public float z
        Axis of rotation
    • Constructor Detail

      • Quaternion_F32

        public Quaternion_F32()
      • Quaternion_F32

        public Quaternion_F32(float w,
                              float x,
                              float y,
                              float z)
    • Method Detail

      • set

        public void set(float w,
                        float x,
                        float y,
                        float z)
      • normalize

        public void normalize()
        Converts the quaternion into a unit quaternion.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.