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