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
x_a: Range<S>
The first half of the x axis range.
x_b: Range<S>
The second half of the x axis range.
y_a: Range<S>
The first half of the y axis range.
y_b: Range<S>
The second half of the y axis range.
z_a: Range<S>
The first half of the z axis range.
z_b: Range<S>
The second half of the z axis range.
Methods
impl<S> SubdivisionRanges<S> where
S: Copy,
[src]
impl<S> SubdivisionRanges<S> where
S: Copy,
pub fn cuboids(&self) -> [Cuboid<S>; 8]
[src]
pub fn cuboids(&self) -> [Cuboid<S>; 8]
The Cuboid
s representing each of the eight subdivisions.
Subdivisions are yielded in the following order:
- Front bottom left
- Front bottom right
- Front top left
- Front top right
- Back bottom left
- Back bottom right
- Back top left
- Back top right
ⓘImportant traits for Subdivisions<S>pub fn cuboids_iter(self) -> Subdivisions<S>
[src]
ⓘImportant traits for Subdivisions<S>
pub fn cuboids_iter(self) -> Subdivisions<S>
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: Copy> Copy for SubdivisionRanges<S>
impl<S: Clone> Clone for SubdivisionRanges<S>
[src]
impl<S: Clone> Clone for SubdivisionRanges<S>
fn clone(&self) -> SubdivisionRanges<S>
[src]
fn clone(&self) -> SubdivisionRanges<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for SubdivisionRanges<S>
[src]
impl<S: Debug> Debug for SubdivisionRanges<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for SubdivisionRanges<S>
[src]
impl<S: PartialEq> PartialEq for SubdivisionRanges<S>
fn eq(&self, other: &SubdivisionRanges<S>) -> bool
[src]
fn eq(&self, other: &SubdivisionRanges<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SubdivisionRanges<S>) -> bool
[src]
fn ne(&self, other: &SubdivisionRanges<S>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<S> Send for SubdivisionRanges<S> where
S: Send,
impl<S> Send for SubdivisionRanges<S> where
S: Send,
impl<S> Sync for SubdivisionRanges<S> where
S: Sync,
impl<S> Sync for SubdivisionRanges<S> where
S: Sync,