Struct bismuth::cube::Partition [] [src]

pub struct Partition { /* fields omitted */ }

A cubic spatial partition. Partitions are represented as an origin and a width.

Partitions are associated with every Cube in a tree.

Methods

impl Partition
[src]

Constructs a new Partition at the given point in space with the given width.

Constructs the sub-Partition at the given index. Returns None if there is no such Partition, because the minimum width has been exceeded.

Panics

Panics if index is not within the range [0, 8).

Gets the origin of the Partition.

Gets the width of the Partition.

Gets the midpoint of the Partition.

Gets the AABB of the Partition.

Returns true if the Partition has the minimum possible width.

Trait Implementations

impl Clone for Partition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Partition
[src]