pub struct CubicSegment<'s>(pub &'s Segment);Tuple Fields§
§0: &'s SegmentImplementations§
Source§impl<'s> CubicSegment<'s>
impl<'s> CubicSegment<'s>
pub fn is_flat(self, tolerance: f32) -> bool
pub fn split(self, t: f32) -> (Segment, Segment)
pub fn split_before(self, t: f32) -> Segment
pub fn split_after(self, t: f32) -> Segment
pub fn sample(self, t: f32) -> Vector2F
pub fn is_monotonic(self) -> bool
pub fn y_extrema(self) -> (Option<f32>, Option<f32>)
pub fn min_x(&self) -> f32
pub fn min_y(&self) -> f32
pub fn max_x(&self) -> f32
pub fn max_y(&self) -> f32
Trait Implementations§
Source§impl<'s> Clone for CubicSegment<'s>
impl<'s> Clone for CubicSegment<'s>
Source§fn clone(&self) -> CubicSegment<'s>
fn clone(&self) -> CubicSegment<'s>
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<'s> Copy for CubicSegment<'s>
Auto Trait Implementations§
impl<'s> Freeze for CubicSegment<'s>
impl<'s> RefUnwindSafe for CubicSegment<'s>
impl<'s> Send for CubicSegment<'s>
impl<'s> Sync for CubicSegment<'s>
impl<'s> Unpin for CubicSegment<'s>
impl<'s> UnsafeUnpin for CubicSegment<'s>
impl<'s> UnwindSafe for CubicSegment<'s>
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