open class Pose(var t: Vector3 = Vector3(0f, 0f, 0f), var q: Quaternion = Quaternion(1.0f, 0f, 0f, 0f))
Pose
(
t
, q
)
|
Signature
constructor(t: Vector3 = Vector3(0f, 0f, 0f), q: Quaternion = Quaternion(1.0f, 0f, 0f, 0f)) Parameters
t:
Vector3
q:
Quaternion Returns |
q
:
Quaternion
[Get][Set] |
The orientation quaternion of the pose.
Signature
open var q: Quaternion |
t
:
Vector3
[Get][Set] |
The position vector of the pose.
Signature
open var t: Vector3 |
component1
()
|
Signature
operator fun component1(): Vector3 Returns |
component2
()
|
Signature
operator fun component2(): Quaternion Returns |
copy
()
| |
equals
(
other
)
|
Signature
open operator override fun equals(other: Any?): Boolean Parameters
other:
Any?
Returns
Boolean
|
forward
()
|
Calculates the forward direction vector of this pose.
Signature
fun forward(): Vector3 |
hashCode
()
|
Signature
open override fun hashCode(): Int Returns
Int
|
inverse
()
| |
lerp
(
dest
, ratio
)
| |
removePitchAndRoll
()
|
Removes the pitch and roll components from this pose, effectively aligning it with the up vector.
Signature
fun removePitchAndRoll(): Pose |
right
()
|
Calculates the right direction vector of this pose.
Signature
fun right(): Vector3 |
times
(
p
)
| |
times
(
v
)
| |
toString
()
|
Provides a string representation of the pose.
Signature
open override fun toString(): String Returns
String
|
up
()
|
Calculates the up direction vector of this pose.
Signature
fun up(): Vector3 |