API reference
API reference
Select your platform
No SDKs available
No versions available

Pose

Pose

data class Pose(var t: Vector3 = Vector3(0f, 0f, 0f), var q: Quaternion = Quaternion(1.0f, 0f, 0f, 0f))
Represents a pose in 3D space, which includes a position and an orientation.

Constructors

NameSummary
Pose
constructor(t: Vector3 = Vector3(0f, 0f, 0f), q: Quaternion = Quaternion(1.0f, 0f, 0f, 0f))

Properties

NameSummary
q
var q: Quaternion
The orientation quaternion of the pose.
t
var t: Vector3
The position vector of the pose.

Functions

NameSummary
forward
fun forward(): Vector3
Calculates the forward direction vector of this pose.
inverse
fun inverse(): Pose
Computes the inverse of this pose.
lerp
fun lerp(dest: Pose, ratio: Float): Pose
Interpolates between this pose and another pose.
removePitchAndRoll
fun removePitchAndRoll(): Pose
Removes the pitch and roll components from this pose, effectively aligning it with the up vector.
right
fun right(): Vector3
Calculates the right direction vector of this pose.
times
operator fun times(p: Pose): Pose
Multiplies this pose with another pose.
operator fun times(v: Vector3): Vector3
Multiplies this pose with a vector.
toString
open override fun toString(): String
Provides a string representation of the pose.
up
fun up(): Vector3
Calculates the up direction vector of this pose.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon