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 Anglestatic Vector3
toEulerAngle(Quaternion q)
Quaternion to Euler Anglestatic Quaternion
toQuaternion(float[] rotationMat)
Rotation matrix to quaternionstatic Quaternion
toQuaternion(float v1, float v2, float v3)
Euler Angle to quaternion Euler Angle is measured in degreesstatic float[]
toRotationMatrix(Quaternion q)
Quaternion rotation matrix
-
-
-
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:
-
-