pub struct BeamSpline { /* private fields */ }Expand description
ln φ(u), the logarithm of the beam per µs at flight time u, as a
uniform cubic B-spline in x = ln u over
knot_span_us. Faster than that span, ln φ
continues from the spline’s value and slope at the first knot with the
spline’s mean curvature over the span, so a beam whose curvature changes
across the span is continued with its mean; slower, the last interval’s
cubic continues. The curve is the beam only over the flight times a fit
integrates.
Implementations§
Source§impl BeamSpline
impl BeamSpline
Sourcepub fn intervals(&self) -> usize
pub fn intervals(&self) -> usize
Number of spline intervals; there are three more coefficients.
Sourcepub fn coefficients(&self) -> &[f64]
pub fn coefficients(&self) -> &[f64]
The spline’s coefficients.
Sourcepub fn knot_span_us(&self) -> (f64, f64)
pub fn knot_span_us(&self) -> (f64, f64)
The flight times, in µs, the knots span.
Trait Implementations§
Source§impl Clone for BeamSpline
impl Clone for BeamSpline
Source§fn clone(&self) -> BeamSpline
fn clone(&self) -> BeamSpline
Returns a duplicate 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 BeamSpline
impl Debug for BeamSpline
Source§impl PartialEq for BeamSpline
impl PartialEq for BeamSpline
impl StructuralPartialEq for BeamSpline
Auto Trait Implementations§
impl Freeze for BeamSpline
impl RefUnwindSafe for BeamSpline
impl Send for BeamSpline
impl Sync for BeamSpline
impl Unpin for BeamSpline
impl UnsafeUnpin for BeamSpline
impl UnwindSafe for BeamSpline
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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