OrbiterPoseProvider

fun interface OrbiterPoseProvider


Calculates the Pose of an Orbiter in 3D space relative to its spatial parent.

Summary

Public functions

Pose
calculatePose(
    anchorSize: IntSize,
    layoutDirection: LayoutDirection,
    orbiterContentSize: IntSize
)

Calculate the Pose of the Orbiter.

Public functions

calculatePose

Added in 1.0.0-alpha13
fun calculatePose(
    anchorSize: IntSize,
    layoutDirection: LayoutDirection,
    orbiterContentSize: IntSize
): Pose

Calculate the Pose of the Orbiter.

Parameters
anchorSize: IntSize

The size of the Orbiter's anchor target in pixels.

layoutDirection: LayoutDirection

The layout direction of the Orbiter.

orbiterContentSize: IntSize

The size of the Orbiter's content in pixels.

Returns
Pose

The Pose of the Orbiter in meters.