Interface Rotation3fc

All Known Implementing Classes:
Rotation3f

public interface Rotation3fc
Interface to a read-only view of a 3-dimensional Euler rotation with single-precision floating point components.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Quaterniond
    getQuaternion(org.joml.Quaterniond dest)
    Get the rotation represented by this rotation and stores it into the given Quaterniond.
    mul(org.joml.Quaterniondc q, Rotation3f dest)
    Rotate these Euler angles by q and store the result in dest.
    float
     
    premul(org.joml.Quaterniondc q, Rotation3f dest)
    Pre-rotate these Euler angles by q and store the result in dest.
    float
     
    org.joml.Vector3d
    transform(org.joml.Vector3d vec)
    Transform the given vector by this rotation.
    org.joml.Vector3d
    transform(org.joml.Vector3dc vec, org.joml.Vector3d dest)
    Transform the given vector by this rotation and store the result in dest.
    float
    x()
     
    float
    y()
     
    float
    yaw()
     
    float
    z()
     
  • Method Details

    • x

      float x()
      Returns:
      the X, or pitch component of the rotation.
    • pitch

      float pitch()
      Returns:
      the pitch component of the rotation.
    • y

      float y()
      Returns:
      the Y, or yaw component of the rotation.
    • yaw

      float yaw()
      Returns:
      the yaw component of the rotation.
    • z

      float z()
      Returns:
      the Z, or roll component of the rotation.
    • roll

      float roll()
      Returns:
      the roll component of the rotation.
    • getQuaternion

      org.joml.Quaterniond getQuaternion(org.joml.Quaterniond dest)
      Get the rotation represented by this rotation and stores it into the given Quaterniond.

      Parameters:
      dest - the destination Quaterniond
      Returns:
      the passed in destination
    • premul

      Rotation3f premul(org.joml.Quaterniondc q, Rotation3f dest)
      Pre-rotate these Euler angles by q and store the result in dest.

      If T is this and Q is the given quaternion, then the resulting quaternion R is:

      R = Q * T

      Parameters:
      q - the quaternion to pre-multiply this by
      dest - will hold the result
      Returns:
      dest
    • mul

      Rotation3f mul(org.joml.Quaterniondc q, Rotation3f dest)
      Rotate these Euler angles by q and store the result in dest.

      If T is this and Q is the given quaternion, then the resulting quaternion R is:

      R = T * Q

      Parameters:
      q - the quaternion to multiply this by
      dest - will hold the result
      Returns:
      dest
    • transform

      org.joml.Vector3d transform(org.joml.Vector3dc vec, org.joml.Vector3d dest)
      Transform the given vector by this rotation and store the result in dest.

      This will apply the rotation described by this to the given vector.

      Parameters:
      vec - the vector to transform
      dest - will hold the result
      Returns:
      dest
    • transform

      org.joml.Vector3d transform(org.joml.Vector3d vec)
      Transform the given vector by this rotation.

      This will apply the rotation described by this to the given vector.

      Parameters:
      vec - the vector to transform
      Returns:
      vec