pub struct PipeEvolution {
pub scale: f64,
pub twist: f64,
}Expand description
How a pipe’s section scales and twists along its spine, each in proportion to the length run along the spine: none at its start, all of it at its end.
Fields§
§scale: f64The section’s scale at the spine’s end, about the spine; it is one at the start. Zero closes the pipe on the spine’s end point.
twist: f64The angle in radians the section has turned through about the spine by its end, counter-clockwise about the direction of travel.
Trait Implementations§
Source§impl Clone for PipeEvolution
impl Clone for PipeEvolution
impl Copy for PipeEvolution
Source§impl Debug for PipeEvolution
impl Debug for PipeEvolution
Source§impl From<PipeEvolution> for PipeLaws
impl From<PipeEvolution> for PipeLaws
Source§fn from(evolution: PipeEvolution) -> Self
fn from(evolution: PipeEvolution) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PipeEvolution
impl PartialEq for PipeEvolution
impl StructuralPartialEq for PipeEvolution
Auto Trait Implementations§
impl Freeze for PipeEvolution
impl RefUnwindSafe for PipeEvolution
impl Send for PipeEvolution
impl Sync for PipeEvolution
impl Unpin for PipeEvolution
impl UnsafeUnpin for PipeEvolution
impl UnwindSafe for PipeEvolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.