com.supermap.ar.areffect.utils

Class PoseUtils

  • java.lang.Object
    • com.supermap.ar.areffect.utils.PoseUtils


  • public class PoseUtils
    extends java.lang.Object
    Pose tool Quaternion, Euler Angle, rotation matrix conversion
    • Constructor Summary

      Constructors 
      Constructor and Description
      PoseUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Vector3 toEulerAngle(float[] mat)
      Quaternion to Euler Angle
      static Vector3 toEulerAngle(Quaternion q)
      Quaternion to Euler Angle
      static Quaternion toQuaternion(float[] rotationMat)
      Rotation matrix to quaternion
      static Quaternion toQuaternion(float v1, float v2, float v3)
      Euler Angle to quaternion Euler Angle is measured in degrees
      static float[] toRotationMatrix(Quaternion q)
      Quaternion rotation matrix
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoseUtils

        public PoseUtils()
    • Method Detail

      • toQuaternion

        public static Quaternion toQuaternion(float v1,
                                              float v2,
                                              float v3)
        Euler Angle to quaternion Euler Angle is measured in degrees
        Returns:
      • toEulerAngle

        public static Vector3 toEulerAngle(Quaternion q)
        Quaternion to Euler Angle
        Parameters:
        q -
        Returns:
      • toEulerAngle

        public static Vector3 toEulerAngle(float[] mat)
        Quaternion to Euler Angle
        Parameters:
        mat -
        Returns:
      • toRotationMatrix

        public static float[] toRotationMatrix(Quaternion q)
        Quaternion rotation matrix
        Parameters:
        q -
        Returns:
      • toQuaternion

        public static Quaternion toQuaternion(float[] rotationMat)
        Rotation matrix to quaternion
        Parameters:
        rotationMat -
        Returns: