Enum flo_curves::bezier::CurveFeatures
source · pub enum CurveFeatures {
Point,
Linear,
Arch,
SingleInflectionPoint(f64),
DoubleInflectionPoint(f64, f64),
Parabolic,
Cusp,
Loop(f64, f64),
}
Expand description
Describes the features of a two-dimensional cubic bezier curve
Variants§
Point
All control points are in the same position
Linear
The control points are in a line
Arch
A simple curve that does not change direction or self-intersect
SingleInflectionPoint(f64)
A curve that changes direction once (and the t value where this occurs)
DoubleInflectionPoint(f64, f64)
A curve that changes direction twice (and the t value where this occurs)
Parabolic
A curve that can be represented as a quadratic curve rather than a cubic one
Cusp
A curve with a cusp
Loop(f64, f64)
A curve containing a loop and the two t values where it self-intersects
Trait Implementations§
source§impl Clone for CurveFeatures
impl Clone for CurveFeatures
source§fn clone(&self) -> CurveFeatures
fn clone(&self) -> CurveFeatures
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CurveFeatures
impl Debug for CurveFeatures
source§impl PartialEq for CurveFeatures
impl PartialEq for CurveFeatures
source§fn eq(&self, other: &CurveFeatures) -> bool
fn eq(&self, other: &CurveFeatures) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CurveFeatures
impl StructuralPartialEq for CurveFeatures
Auto Trait Implementations§
impl Freeze for CurveFeatures
impl RefUnwindSafe for CurveFeatures
impl Send for CurveFeatures
impl Sync for CurveFeatures
impl Unpin for CurveFeatures
impl UnwindSafe for CurveFeatures
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more