androidx.xr.runtime.testing.math


Top-level functions summary

Unit
assertPose(actual: Pose, expected: Pose, epsilon: Float)

Asserts that two Poses are equal.

Unit
assertRotation(actual: Quaternion, expected: Quaternion, epsilon: Float)

Asserts that two Quaternions are equal.

Unit
assertVector3(actual: Vector3, expected: Vector3, epsilon: Float)

Asserts that two Vector3s are equal.

Top-level functions

fun assertPose(actual: Pose, expected: Pose, epsilon: Float = 1.0E-5f): Unit

Asserts that two Poses are equal.

Parameters
actual: Pose

the actual Pose to compare

expected: Pose

the expected Pose to compare

epsilon: Float = 1.0E-5f

the maximum difference allowed between the two Pose objects

fun assertRotation(
    actual: Quaternion,
    expected: Quaternion,
    epsilon: Float = 1.0E-5f
): Unit

Asserts that two Quaternions are equal.

Parameters
actual: Quaternion

the actual Quaternion to compare

expected: Quaternion

the expected Quaternion to compare

epsilon: Float = 1.0E-5f

the maximum difference allowed between the two Quaternion objects

fun assertVector3(actual: Vector3, expected: Vector3, epsilon: Float = 1.0E-5f): Unit

Asserts that two Vector3s are equal.

Parameters
actual: Vector3

the actual Vector3 to compare

expected: Vector3

the expected Vector3 to compare

epsilon: Float = 1.0E-5f

the maximum difference allowed between the two Vector3 objects