FakeXrExtensions.FakeNodeTransform


public class FakeXrExtensions.FakeNodeTransform


A fake implementation of the XR extensions NodeTransform.

Summary

Public fields

Mat4f

Public constructors

Public methods

long

Get the timestamp at which the transformation matrix was recorded.

@NonNull Mat4f

Get the transformation matrix associated with the node.

Public fields

transform

Added in 1.0.0-alpha01
public Mat4f transform

Public constructors

FakeNodeTransform

Added in 1.0.0-alpha01
public FakeNodeTransform(@NonNull Mat4f transform)

Public methods

getTimestamp

Added in 1.0.0-alpha01
public long getTimestamp()

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-alpha01
public @NonNull Mat4f getTransform()

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
@NonNull Mat4f

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