pub enum PipeLaw<'a> {
RotationMinimizing,
Frenet,
Auxiliary {
guide: &'a Shape,
},
Binormal(Direction),
Fixed,
}Expand description
How a pipe’s section turns about its spine.
Variants§
RotationMinimizing
Double-reflection rotation-minimizing frames: the section neither twists nor kinks where the spine bends.
Frenet
The Frenet frame, turning with the spine’s own curvature.
Auxiliary
The section’s normal axis points at guide, a curve running beside
the spine: at each station, where the guide crosses the plane square
to the spine there.
Binormal(Direction)
The section keeps this direction as its binormal, square to the spine’s tangent.
Fixed
The section keeps the frame it has at the spine’s start all the way: carried by translation along the spine, never turned.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PipeLaw<'a>
impl<'a> RefUnwindSafe for PipeLaw<'a>
impl<'a> Send for PipeLaw<'a>
impl<'a> Sync for PipeLaw<'a>
impl<'a> Unpin for PipeLaw<'a>
impl<'a> UnsafeUnpin for PipeLaw<'a>
impl<'a> UnwindSafe for PipeLaw<'a>
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,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.