Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAllFilterGeometryOptions ¶
func ApplyAllFilterGeometryOptions(objects []rtreego.Spatial, opts ...interface{}) []rtreego.Spatial
ApplyAllFilterGeometryOptions applies all FilterGeometryOption from the opts provided on the unfiltered objects-list given. The filters are applied in the order they are provided.
func VerifyAllAreOptions ¶
func VerifyAllAreOptions(opts ...interface{}) error
VerifyAllAreOptions checks that all provided arguments are valid options.
Types ¶
type FilterGeometryOption ¶
type FilterGeometryOption interface { // Apply filters or reshuffles elements by looking at the bounds. // Returns indices relative to the collection of bounds of the filtered/reshuffled // elements. Apply(bounds []*vec3.Box) []int }
FilterGeometryOption is an interface to operations that filter/reshuffled elements based on geometry (bounds). This can e.g. be operations that cut of small objects far away or sorting objects by distance.
type SortByDistance ¶
SortByDistance sorts objects returned from e.g. Repository.GetInsideVolume() by distance (nearest first) to some 'pivot location'.
Click to show internal directories.
Click to hide internal directories.