Struct acacia::partition::UnitQuad [] [src]

pub struct UnitQuad { /* fields omitted */ }

A partition of the unit quad [0, 1) × [0, 1)

Methods

impl UnitQuad
[src]

Create a new UnitQuad

This asserts that the offset is valid given the scale level.

Integer scale

Integer offset

Get coordinate within the partition from (u, v) coordinates

Center of the partitioned region

Width of the partitioned region

Trait Implementations

impl Copy for UnitQuad
[src]

impl Clone for UnitQuad
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for UnitQuad
[src]

Formats the value using the given formatter.

impl PartialEq for UnitQuad
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for UnitQuad
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Eq for UnitQuad
[src]

impl Subdivide for UnitQuad
[src]

Subdivide into smaller partitions

impl<T: BaseFloat + NumCast + Float> Partition<Vector2<T>> for UnitQuad
[src]

Does the partition contain an element?

Dispatch an element to the correct subpartition Read more