tests.dunit_tests

Undocumented in source.

Members

Functions

assertEquals
void assertEquals(AxisAngle4d a, AxisAngle4d b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(Quaterniond a, Quaterniond b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(Vector3d a, Vector3d b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(Vector3i a, Vector3i b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(Vector4d a, Vector4d b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(Vector4i a, Vector4i b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(double a, double b, double precision)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(double a, double b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertEquals
void assertEquals(Vector2i a, Vector2i b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertFalse
void assertFalse(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
assertTrue
void assertTrue(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
floatEqual
bool floatEqual(float a, float b, float precision)

Return whether two floating point numbers are equal. They are considered equal when their difference is less than or equal to the precision. @param a the first number @param b the second number @param precision if abs(a - b) <= precision, a and b are considered equal @return whether a and b are equal @see #floatCompare(float, float, float)

setTestVerbose
void setTestVerbose(bool newValue)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

assertMatrix3dEquals
void assertMatrix3dEquals(Matrix3d m1, Matrix3d m2, double delta)

Assert that both matrices are equal with respect to the given delta.

assertMatrix4dEquals
void assertMatrix4dEquals(Matrix4d m1, Matrix4d m2, double delta)

Assert that both matrices are equal with respect to the given delta.

assertMatrix4x3dEquals
void assertMatrix4x3dEquals(Matrix4x3d m1, Matrix4x3d m2, double delta)

Assert that both matrices are equal with respect to the given delta.

assertQuaterniondEquals
void assertQuaterniondEquals(Quaterniond expected, Quaterniond actual, double delta)

Assert that both quaternions are equal with respect to the given delta.

assertVector2dEquals
void assertVector2dEquals(Vector2d expected, Vector2d actual, double delta)

Assert that both vectors are equal with respect to the given delta.

assertVector3dEquals
void assertVector3dEquals(Vector3d expected, Vector3d actual, double delta)

Assert that both quaternions are equal with respect to the given delta.

assertVector4dEquals
void assertVector4dEquals(Vector4d expected, Vector4d actual, double delta)

Assert that both vectors are equal with respect to the given delta.

doubleCompare
int doubleCompare(double a, double b, double precision)

Compare two double-precision floating point numbers. They are considered equal when their difference is less than or equal to the precision. @param a the first number @param b the second number @param precision if abs(a - b) <= precision, a and b are considered equal @return 0 if a == b, 1 if a > b, -1 if a < b @see #floatEqual(double, double, double)

doubleEqual
bool doubleEqual(double a, double b, double precision)

Return whether two double-precision floating point numbers are equal. They are considered equal when their difference is less than or equal to the precision. @param a the first number @param b the second number @param precision if abs(a - b) <= precision, a and b are considered equal @return whether a and b are equal @see #floatCompare(double, double, double)

floatCompare
int floatCompare(float a, float b, float precision)

Compare two floating point numbers. They are considered equal when their difference is less than or equal to the precision. @param a the first number @param b the second number @param precision if abs(a - b) <= precision, a and b are considered equal @return 0 if a == b, 1 if a > b, -1 if a < b @see #floatEqual(float, float, float)

quatEqual
bool quatEqual(Quaterniond a, Quaterniond b, double precision)

Return whether two quaternions are equal. They are considered equal when their difference is less than or equal to the precision. @param a the first quaternion @param b the second quaternion @param precision if abs(a.comp - b.comp) <= precision for every component comp (x, y, z, w), a and b are considered equal @return whether a and b are equal

Variables

MANY_OPS_AROUND_ZERO_PRECISION_DOUBLE
double MANY_OPS_AROUND_ZERO_PRECISION_DOUBLE;

Precision for methods that do many operations calculating with values with a magnitude around zero, giving less accuracy.

MANY_OPS_AROUND_ZERO_PRECISION_FLOAT
float MANY_OPS_AROUND_ZERO_PRECISION_FLOAT;

Precision for methods that do many operations calculating with a magnitude around zero, giving less accuracy.

STANDARD_AROUND_ZERO_PRECISION_DOUBLE
double STANDARD_AROUND_ZERO_PRECISION_DOUBLE;

Precision for methods that do basic operations calculating with a magnitude around zero.

STANDARD_AROUND_ZERO_PRECISION_FLOAT
float STANDARD_AROUND_ZERO_PRECISION_FLOAT;

Precision for methods that do basic operations calculating with a magnitude around zero.

Meta