pub struct Cubic64 {
pub points: [Point64; 4],
}
Fields§
§points: [Point64; 4]
Implementations§
source§impl Cubic64
impl Cubic64
pub fn new(points: [Point64; 4]) -> Self
pub fn as_f64_slice(&self) -> [f64; 8]
pub fn point_at_t(&self, t: f64) -> Point64
pub fn search_roots( &self, extrema: usize, axis_intercept: f64, x_axis: SearchAxis, extreme_ts: &mut [f64; 6], valid_roots: &mut [f64], ) -> usize
fn find_inflections(&self, t_values: &mut [f64]) -> usize
fn binary_search( &self, min: f64, max: f64, axis_intercept: f64, x_axis: SearchAxis, ) -> f64
pub fn chop_at(&self, t: f64) -> Cubic64Pair
Auto Trait Implementations§
impl Freeze for Cubic64
impl RefUnwindSafe for Cubic64
impl Send for Cubic64
impl Sync for Cubic64
impl Unpin for Cubic64
impl UnwindSafe for Cubic64
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