pub enum SpiralKind {
Clothoid {
constant: f64,
},
Cosine {
cosine: f64,
constant: Option<f64>,
},
Sine {
sine: f64,
linear: Option<f64>,
constant: Option<f64>,
},
SecondOrder {
quadratic: f64,
linear: Option<f64>,
constant: Option<f64>,
},
ThirdOrder {
cubic: f64,
quadratic: Option<f64>,
linear: Option<f64>,
constant: Option<f64>,
},
SeventhOrder {
septic: f64,
lower: [Option<f64>; 7],
},
}Expand description
Which spiral to stage, with its defining terms.
Each variant names its terms as the schema does, highest degree first. The leading term is required because it is what makes the spiral that kind: a clothoid with no constant is not a clothoid.
Variants§
Clothoid
IfcClothoid: curvature proportional to arc length.
Cosine
IfcCosineSpiral.
Sine
IfcSineSpiral.
SecondOrder
IfcSecondOrderPolynomialSpiral.
Fields
ThirdOrder
IfcThirdOrderPolynomialSpiral.
Fields
SeventhOrder
IfcSeventhOrderPolynomialSpiral.
Trait Implementations§
Source§impl Clone for SpiralKind
impl Clone for SpiralKind
Source§fn clone(&self) -> SpiralKind
fn clone(&self) -> SpiralKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpiralKind
Source§impl Debug for SpiralKind
impl Debug for SpiralKind
Source§impl PartialEq for SpiralKind
impl PartialEq for SpiralKind
impl StructuralPartialEq for SpiralKind
Auto Trait Implementations§
impl Freeze for SpiralKind
impl RefUnwindSafe for SpiralKind
impl Send for SpiralKind
impl Sync for SpiralKind
impl Unpin for SpiralKind
impl UnsafeUnpin for SpiralKind
impl UnwindSafe for SpiralKind
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