Module broccoli::query[][src]

Expand description

Items related to querying.

Structs

CastAnswer

What is returned when the ray hits something. It provides the length of the ray, as well as all solutions in a unspecified order.

KnearestResult

Returned by k_nearest_mut

NotSortedQueryBuilder

Builder for a query on a NotSorted Dinotree.

QueryBuilder

Builder for a query on a DinoTree.

RectIntersectErr

Indicates that the user supplied a rectangle that intersects with a another one previously queries in the session.

Enums

GravEnum

Helper enum indicating whether or not to gravitate a node as a whole, or as its individual parts.

Traits

CollisionHandler

Used for the advanced algorithms. Trait that user implements to handling aabb collisions. The user supplies a struct that implements this trait instead of just a closure so that the user may also have the struct implement Splitter.

DividerDrawer

Trait user must implement.

Knearest

The geometric functions that the user must provide.

Nbody

User defined functions for nbody

RayCast

A Vec is returned since there coule be ties where the ray hits multiple T at a length N away. This is the trait that defines raycast specific geometric functions that are needed by this raytracing algorithm. By containing all these functions in this trait, we can keep the trait bounds of the underlying Num to a minimum of only needing Ord.