FakeXrExtensions.FakeNodeTransform


class FakeXrExtensions.FakeNodeTransform


A fake implementation of the XR extensions NodeTransform.

Summary

Public constructors

Public functions

Long

Get the timestamp at which the transformation matrix was recorded.

Mat4f

Get the transformation matrix associated with the node.

Public constructors

FakeNodeTransform

Added in 1.0.0-alpha02
FakeNodeTransform(transform: Mat4f)

Public functions

getTimestamp

Added in 1.0.0-alpha02
fun getTimestamp(): Long

Get the timestamp at which the transformation matrix was recorded.

The time the record happened, in the android.os.SystemClock#uptimeNanos time base.

Returns
Long

A timestamp at which the transformation matrix was recorded.

getTransform

Added in 1.0.0-alpha02
fun getTransform(): Mat4f

Get the transformation matrix associated with the node.

The provided matrix transforms a point in this node's local coordinate system into a point in world space coordinates. For example, NodeTransform.getTransform() * (0, 0, 0, 1) is the position of this node in world space. The first non-null transform will be returned immediately after the subscription set-up is complete.

Returns
Mat4f

A transformation matrix Mat4f containing the current transformation matrix of this node.