pub enum Parameterisation {
Uniform,
ChordLength,
Centripetal,
}Expand description
How a point sequence is mapped onto its curve parameter.
Variants§
Uniform
Equal parameter spacing, independent of point spacing.
ChordLength
Spacing proportional to the distance between consecutive points (Piegl and Tiller eq. 9.4).
Centripetal
Spacing proportional to the square root of the distance (Piegl and Tiller eq. 9.6): tends to track curvature changes better than chord length when the input has sharp corners.
Trait Implementations§
Source§impl Clone for Parameterisation
impl Clone for Parameterisation
Source§fn clone(&self) -> Parameterisation
fn clone(&self) -> Parameterisation
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 Parameterisation
Source§impl Debug for Parameterisation
impl Debug for Parameterisation
impl Eq for Parameterisation
Source§impl PartialEq for Parameterisation
impl PartialEq for Parameterisation
impl StructuralPartialEq for Parameterisation
Auto Trait Implementations§
impl Freeze for Parameterisation
impl RefUnwindSafe for Parameterisation
impl Send for Parameterisation
impl Sync for Parameterisation
impl Unpin for Parameterisation
impl UnsafeUnpin for Parameterisation
impl UnwindSafe for Parameterisation
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