Struct nannou::geom::cuboid::SubdivisionRanges [] [src]

pub struct SubdivisionRanges<S> {
    pub x_a: Range<S>,
    pub x_b: Range<S>,
    pub y_a: Range<S>,
    pub y_b: Range<S>,
    pub z_a: Range<S>,
    pub z_b: Range<S>,
}

The three ranges that make up the 8 subdivisions of a cuboid.

Fields

The first half of the x axis range.

The second half of the x axis range.

The first half of the y axis range.

The second half of the y axis range.

The first half of the z axis range.

The second half of the z axis range.

Methods

impl<S> SubdivisionRanges<S> where
    S: Copy
[src]

[src]

The Cuboids representing each of the eight subdivisions.

Subdivisions are yielded in the following order:

  1. Front bottom left
  2. Front bottom right
  3. Front top left
  4. Front top right
  5. Back bottom left
  6. Back bottom right
  7. Back top left
  8. Back top right

Important traits for Subdivisions<S>
[src]

The same as cuboids but each subdivision is yielded via the returned Iterator.

Trait Implementations

impl<S: Copy> Copy for SubdivisionRanges<S>
[src]

impl<S: Clone> Clone for SubdivisionRanges<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for SubdivisionRanges<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for SubdivisionRanges<S>
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl<S> Send for SubdivisionRanges<S> where
    S: Send

impl<S> Sync for SubdivisionRanges<S> where
    S: Sync