pub struct AlphaInterval {
pub alpha0: f64,
pub alpha1: f64,
}Expand description
Normalized endpoint coefficients for one directed cubic interval.
The interval value is
y0*(1-t) + y1*t + (1-t)*t*(alpha0 + alpha1*t), with t=0 at
the first endpoint and t=1 at the second.
Fields§
§alpha0: f64§alpha1: f64Implementations§
Source§impl AlphaInterval
impl AlphaInterval
pub const fn new(alpha0: f64, alpha1: f64) -> AlphaInterval
Sourcepub const fn reversed(self) -> AlphaInterval
pub const fn reversed(self) -> AlphaInterval
Reverse the directed interval without changing its geometric curve.
(alpha0, alpha1) -> (alpha0 + alpha1, -alpha1).
Trait Implementations§
Source§impl Clone for AlphaInterval
impl Clone for AlphaInterval
Source§fn clone(&self) -> AlphaInterval
fn clone(&self) -> AlphaInterval
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 AlphaInterval
Source§impl Debug for AlphaInterval
impl Debug for AlphaInterval
Source§impl Default for AlphaInterval
impl Default for AlphaInterval
Source§fn default() -> AlphaInterval
fn default() -> AlphaInterval
Returns the “default value” for a type. Read more
Source§impl PartialEq for AlphaInterval
impl PartialEq for AlphaInterval
impl StructuralPartialEq for AlphaInterval
Auto Trait Implementations§
impl Freeze for AlphaInterval
impl RefUnwindSafe for AlphaInterval
impl Send for AlphaInterval
impl Sync for AlphaInterval
impl Unpin for AlphaInterval
impl UnsafeUnpin for AlphaInterval
impl UnwindSafe for AlphaInterval
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