pub struct HermiteCorridorSegment {
pub p0: SplineControlPoint,
pub p1: SplineControlPoint,
pub kind: CorridorKind,
}Expand description
Hermite cubic spline evaluation for a corridor segment.
Fields§
§p0: SplineControlPoint§p1: SplineControlPoint§kind: CorridorKindImplementations§
Source§impl HermiteCorridorSegment
impl HermiteCorridorSegment
Sourcepub fn sample_centerline(&self, t: f64) -> ([f64; 2], f64)
pub fn sample_centerline(&self, t: f64) -> ([f64; 2], f64)
Evaluates point along the spline at parameter $t \in [0, 1]$.
Sourcepub fn distance_to_point(&self, px: f64, py: f64) -> (f64, f64)
pub fn distance_to_point(&self, px: f64, py: f64) -> (f64, f64)
Evaluates shortest distance from a terrain point $(px, py)$ to the segment.
Sourcepub fn conform_strata_column(
&self,
col_x_mm: f64,
col_y_mm: f64,
record: &mut M64StrataColumnRecord,
) -> bool
pub fn conform_strata_column( &self, col_x_mm: f64, col_y_mm: f64, record: &mut M64StrataColumnRecord, ) -> bool
Conforms a strata column record to this corridor.
Auto Trait Implementations§
impl Freeze for HermiteCorridorSegment
impl RefUnwindSafe for HermiteCorridorSegment
impl Send for HermiteCorridorSegment
impl Sync for HermiteCorridorSegment
impl Unpin for HermiteCorridorSegment
impl UnsafeUnpin for HermiteCorridorSegment
impl UnwindSafe for HermiteCorridorSegment
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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