Struct nannou::prelude::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>, }
Expand description
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.
Implementations
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
pub fn cuboids_iter(self) -> Subdivisions<S>ⓘNotable traits for Subdivisions<S>
impl<S> Iterator for Subdivisions<S> where
S: Copy, type Item = Cuboid<S>;
pub fn cuboids_iter(self) -> Subdivisions<S>ⓘNotable traits for Subdivisions<S>
impl<S> Iterator for Subdivisions<S> where
S: Copy, type Item = Cuboid<S>;
The same as cuboids
but each subdivision is yielded via the returned Iterator
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<S> RefUnwindSafe for SubdivisionRanges<S> where
S: RefUnwindSafe,
impl<S> Send for SubdivisionRanges<S> where
S: Send,
impl<S> Sync for SubdivisionRanges<S> where
S: Sync,
impl<S> Unpin for SubdivisionRanges<S> where
S: Unpin,
impl<S> UnwindSafe for SubdivisionRanges<S> where
S: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
pub fn vzip(self) -> V