Pose
A 6-degree-freedom pose (3D position and 3D rotation). See TaitβBryan angles: z-y'-x"
class Pose
Usageβ
import {Pose} from '@math.gl/core/matrix';
Membersβ
x, y zβ
Gets or sets position components respectively
roll, pitch, yawβ
Gets or sets rotation components respectively
Methodsβ
constructorβ
new Pose({x, y, z, roll, pitch, yaw});
new Pose({position, orientation});
x,y,z- positionroll,pitch,yaw- rotation in radiansposition-Vector3or array of 3 that represents the positionorientation-Euleror array of 4 that represents the rotation
getPositionβ
pose.getPosition()
Returns Vector3.
getOrientationβ
pose.getOrientation()
Returns Euler.
equalsβ
pose.equals(otherPose)
exactEqualsβ
pose.exactEquals(otherPose)
getTransformationMatrixβ
pose.getTransformationMatrix()
Returns a 4x4 matrix that transforms a coordinates (in the same coordinate system as this pose) into the "pose-relative" coordinate system defined by this pose.
The pose relative coordinates with have origin in the position of this pose, and axis will be aligned with the rotation of this pose.
Returns Matrix4.
getTransformationMatrixFromPoseβ
pose.getTransformationMatrixFromPose(otherPose)
Given a second pose that represent the same object in a second coordinate system, this method returns a 4x4 matrix that transforms coordinates in the second coordinate system into the coordinate system of this pose.
Returns Matrix4.
getTransformationMatrixToPoseβ
pose.getTransformationMatrixToPose(otherPose)
Given a second pose that represent the same object in a second coordinate system, this method returns a 4x4 matrix that transforms coordinates in the coordinate system of this pose into the coordinate system of the second pose.
Returns Matrix4.