Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Box ¶ added in v1.3.0
func Box( targetMin, targetMax [2]float64, wrapX bool, itemDist func(min, max [2]float64, data interface{}) float64, ) ( algo func(min, max [2]float64, data interface{}, item bool) (dist float64), )
Box performs simple box-distance algorithm on rectangles. When wrapX is provided, the operation does a cylinder wrapping of the X value to allow for antimeridian calculations. When itemDist is provided (not nil), it becomes the caller's responsibility to return the box-distance.
func BoxDistCalc ¶ added in v1.3.0
BoxDistCalc returns the distance from rectangle A to rectangle B. When wrapX is provided, the operation does a cylinder wrapping of the X value to allow for antimeridian calculations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.