[][src]Module ezcgmath::approx

approx crate re-export, useful for asserts on vector/matrix types.

Macros

abs_diff_eq

Approximate equality of using the absolute difference.

abs_diff_ne

Approximate inequality of using the absolute difference.

assert_abs_diff_eq

An assertion that delegates to abs_diff_eq!, and panics with a helpful error on failure.

assert_abs_diff_ne

An assertion that delegates to abs_diff_ne!, and panics with a helpful error on failure.

assert_relative_eq

An assertion that delegates to relative_eq!, and panics with a helpful error on failure.

assert_relative_ne

An assertion that delegates to relative_ne!, and panics with a helpful error on failure.

assert_ulps_eq

An assertion that delegates to ulps_eq!, and panics with a helpful error on failure.

assert_ulps_ne

An assertion that delegates to ulps_ne!, and panics with a helpful error on failure.

relative_eq

Approximate equality using both the absolute difference and relative based comparisons.

relative_ne

Approximate inequality using both the absolute difference and relative based comparisons.

ulps_eq

Approximate equality using both the absolute difference and ULPs (Units in Last Place).

ulps_ne

Approximate inequality using both the absolute difference and ULPs (Units in Last Place).

Structs

AbsDiff

The requisite parameters for testing for approximate equality using a absolute difference based comparison.

Relative

The requisite parameters for testing for approximate equality using a relative based comparison.

Ulps

The requisite parameters for testing for approximate equality using an ULPs based comparison.

Traits

AbsDiffEq

Equality that is defined using the absolute difference of two numbers.

RelativeEq

Equality comparisons between two numbers using both the absolute difference and relative based comparisons.

UlpsEq

Equality comparisons between two numbers using both the absolute difference and ULPs (Units in Last Place) based comparisons.