public sealed class Bucket
Represents a single spatial bucket in a raycaster lookup grid.

Constructors

Bucket

#
Create a new, empty bucket.
public Bucket(
box,
Bounding box.
shapes
Shapes to test for coverage.
)

Properties

Box

#
Gets the bounding box of this bucket.
public Box Box { get; }

Count

#
Gets the number of indices associated with this bucket.
public int Count { get; }

Methods

NextIndex

#
Find the index of the next potential object underneath the coordinate.
public bool NextIndex(
x,
Coordinate x component.
y,
Coordinate y component.
startIndex,
Start index (will be included).
out int
index,
Next potential index will be returned here.
out bool
partial
Partiality of next index will be returned here.
)
True if a potential index was found.

ObjectIndexAt

#
Gets an object index.
public int ObjectIndexAt(
index
Index of object index.
)

ObjectPartialAt

#
Gets an object partial coverage.
public bool ObjectPartialAt(
index
Partiality of object index.
)