pub struct PipeLaws {
pub scale: SpineLaw,
pub twist: SpineLaw,
pub contact: PipeContact,
}Expand description
How a pipe’s section scales and twists along its spine, each by its own law of the share of the spine’s length run, and how its profile is brought onto the spine first.
Fields§
§scale: SpineLawThe section’s scale about the spine; one at the start.
twist: SpineLawThe angle in radians the section has turned through about the spine, counter-clockwise about the direction of travel; naught at the start.
contact: PipeContactHow the profile is moved onto the spine’s start before it is swept; as placed by default.
Trait Implementations§
Source§impl Default for PipeLaws
The section neither scaled nor twisted, its profile swept as placed.
impl Default for PipeLaws
The section neither scaled nor twisted, its profile swept as placed.
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.
impl StructuralPartialEq for PipeLaws
Auto Trait Implementations§
impl !RefUnwindSafe for PipeLaws
impl !UnwindSafe for PipeLaws
impl Freeze for PipeLaws
impl Send for PipeLaws
impl Sync for PipeLaws
impl Unpin for PipeLaws
impl UnsafeUnpin for PipeLaws
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.