Struct CurveDifferential2
pub struct CurveDifferential2 {
pub point: DVec2,
pub unit_tangent: DVec2,
pub curvature: f64,
pub signed_curvature: f64,
pub curvature_vector: DVec2,
}Expand description
Parameter-invariant differential properties of a planar curve.
Fields§
§point: DVec2Evaluated point.
unit_tangent: DVec2Unit tangent in increasing-parameter direction.
curvature: f64Unsigned parameter-invariant curvature.
signed_curvature: f64Signed planar curvature; positive bends toward the tangent’s left normal.
curvature_vector: DVec2Left unit normal scaled by signed curvature.
Trait Implementations§
§impl Clone for CurveDifferential2
impl Clone for CurveDifferential2
§fn clone(&self) -> CurveDifferential2
fn clone(&self) -> CurveDifferential2
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 more§impl Debug for CurveDifferential2
impl Debug for CurveDifferential2
§impl PartialEq for CurveDifferential2
impl PartialEq for CurveDifferential2
impl Copy for CurveDifferential2
impl StructuralPartialEq for CurveDifferential2
Auto Trait Implementations§
impl Freeze for CurveDifferential2
impl RefUnwindSafe for CurveDifferential2
impl Send for CurveDifferential2
impl Sync for CurveDifferential2
impl Unpin for CurveDifferential2
impl UnwindSafe for CurveDifferential2
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<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