Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶
func Max[T constraints.Ordered](a, b T) T
func MaxN ¶
func MaxN[T constraints.Ordered](ts ...T) T
func Min ¶
func Min[T constraints.Ordered](a, b T) T
func MinN ¶
func MinN[T constraints.Ordered](ts ...T) T
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 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
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.