pub struct CurveProjection2 {
pub parameter: f64,
pub point: DVec2,
pub distance: f64,
pub iterations: u16,
pub on_boundary: bool,
pub status: ProjectionStatus,
}Expand description
Best planar-curve projection candidate found within the supplied budget.
Fields§
§parameter: f64Native curve parameter.
point: DVec2Evaluated point at parameter.
distance: f64Euclidean distance from the target.
iterations: u16Newton updates used by the selected start.
on_boundary: boolWhether the selected parameter tuple touches its active domain boundary.
status: ProjectionStatusLocal-solve outcome; not a global-optimum certificate.
Trait Implementations§
Source§impl Clone for CurveProjection2
impl Clone for CurveProjection2
Source§fn clone(&self) -> CurveProjection2
fn clone(&self) -> CurveProjection2
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 CurveProjection2
Source§impl Debug for CurveProjection2
impl Debug for CurveProjection2
Source§impl PartialEq for CurveProjection2
impl PartialEq for CurveProjection2
impl StructuralPartialEq for CurveProjection2
Auto Trait Implementations§
impl Freeze for CurveProjection2
impl RefUnwindSafe for CurveProjection2
impl Send for CurveProjection2
impl Sync for CurveProjection2
impl Unpin for CurveProjection2
impl UnsafeUnpin for CurveProjection2
impl UnwindSafe for CurveProjection2
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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