MathAssertions

Added in 1.0.0-alpha01

public final class MathAssertions


Summary

Public methods

static final void
assertPose(@NonNull Pose actual, @NonNull Pose expected, float epsilon)

Asserts that two Poses are equal.

static final void
assertRotation(
    @NonNull Quaternion actual,
    @NonNull Quaternion expected,
    float epsilon
)

Asserts that two Quaternions are equal.

static final void
assertVector3(
    @NonNull Vector3 actual,
    @NonNull Vector3 expected,
    float epsilon
)

Asserts that two Vector3s are equal.

Public methods

public static final void assertPose(@NonNull Pose actual, @NonNull Pose expected, float epsilon)

Asserts that two Poses are equal.

Parameters
@NonNull Pose actual

the actual Pose to compare

@NonNull Pose expected

the expected Pose to compare

float epsilon

the maximum difference allowed between the two Pose objects

public static final void assertRotation(
    @NonNull Quaternion actual,
    @NonNull Quaternion expected,
    float epsilon
)

Asserts that two Quaternions are equal.

Parameters
@NonNull Quaternion actual

the actual Quaternion to compare

@NonNull Quaternion expected

the expected Quaternion to compare

float epsilon

the maximum difference allowed between the two Quaternion objects

public static final void assertVector3(
    @NonNull Vector3 actual,
    @NonNull Vector3 expected,
    float epsilon
)

Asserts that two Vector3s are equal.

Parameters
@NonNull Vector3 actual

the actual Vector3 to compare

@NonNull Vector3 expected

the expected Vector3 to compare

float epsilon

the maximum difference allowed between the two Vector3 objects