Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssertEqualizer ¶
AssertEqualizer allows a type to define an equality test.
Note that when fulfilling an interface Go will coerce a pointer type to it's base type, but not the other way. So if AssertEqual is on the base type and a pointer to that type is passed into geomtest.Equal it will be cast to the base type.
type Tolerance ¶
type Tolerance float64
Tolerance represents a difference below which two floats can be considered equal.
var DefaultTolerance Tolerance = 1e-5
DefaultTolerance adjusts how close values must be to be considered equal
Click to show internal directories.
Click to hide internal directories.