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

WatchedPose

WatchedPose

class WatchedPose(attribute: PoseAttribute, vt: Vector3, vq: Quaternion) : Pose

Constructors

NameSummary
WatchedPose
constructor(attribute: PoseAttribute, vt: Vector3, vq: Quaternion)

Properties

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

Functions

NameSummary
component1
operator fun component1(): Vector3
component2
operator fun component2(): Quaternion
copy
fun copy(): Pose
Returns a copy of this pose.
equals
open operator override fun equals(other: Any?): Boolean
forward
fun forward(): Vector3
Calculates the forward direction vector of this pose.
hashCode
open override fun hashCode(): Int
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.
markDirty
fun markDirty(potentialValue: PoseQuaternion)
fun markDirty(potentialValue: PoseVector3)
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
inline operator fun times(p: Pose): Pose
Multiplies this pose with another pose.
inline 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