[][src]Struct lyon_geom::Monotonic

pub struct Monotonic<T> { /* fields omitted */ }

A x and y monotonic curve segment, for example Monotonic<QuadraticBezierSegment>.

Methods

impl<T: Segment> Monotonic<T>[src]

pub fn segment(&self) -> &T[src]

pub fn from(&self) -> Point<T::Scalar>[src]

pub fn to(&self) -> Point<T::Scalar>[src]

pub fn sample(&self, t: T::Scalar) -> Point<T::Scalar>[src]

pub fn x(&self, t: T::Scalar) -> T::Scalar[src]

pub fn y(&self, t: T::Scalar) -> T::Scalar[src]

pub fn derivative(&self, t: T::Scalar) -> Vector<T::Scalar>[src]

pub fn dx(&self, t: T::Scalar) -> T::Scalar[src]

pub fn dy(&self, t: T::Scalar) -> T::Scalar[src]

pub fn split_range(&self, t_range: Range<T::Scalar>) -> Self[src]

pub fn split(&self, t: T::Scalar) -> (Self, Self)[src]

pub fn before_split(&self, t: T::Scalar) -> Self[src]

pub fn after_split(&self, t: T::Scalar) -> Self[src]

pub fn flip(&self) -> Self[src]

pub fn approximate_length(&self, tolerance: T::Scalar) -> T::Scalar[src]

impl<S: Scalar> Monotonic<QuadraticBezierSegment<S>>[src]

pub fn solve_t_for_x(&self, x: S) -> S[src]

pub fn solve_t_for_y(&self, y: S) -> S[src]

pub fn split_at_x(&self, x: S) -> (Self, Self)[src]

pub fn intersections_t(
    &self,
    self_t_range: Range<S>,
    other: &Self,
    other_t_range: Range<S>,
    tolerance: S
) -> ArrayVec<[(S, S); 2]>
[src]

pub fn intersections(
    &self,
    self_t_range: Range<S>,
    other: &Self,
    other_t_range: Range<S>,
    tolerance: S
) -> ArrayVec<[Point<S>; 2]>
[src]

pub fn first_intersection_t(
    &self,
    self_t_range: Range<S>,
    other: &Self,
    other_t_range: Range<S>,
    tolerance: S
) -> Option<(S, S)>
[src]

pub fn first_intersection(
    &self,
    self_t_range: Range<S>,
    other: &Self,
    other_t_range: Range<S>,
    tolerance: S
) -> Option<Point<S>>
[src]

impl<S: Scalar> Monotonic<CubicBezierSegment<S>>[src]

pub fn solve_t_for_x(&self, x: S, t_range: Range<S>, tolerance: S) -> S[src]

pub fn split_at_x(&self, x: S) -> (Self, Self)[src]

Trait Implementations

impl<T: Segment> Segment for Monotonic<T>[src]

type Scalar = T::Scalar

impl<T: Copy> Copy for Monotonic<T>[src]

impl<T: Clone> Clone for Monotonic<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Monotonic<T>[src]

Auto Trait Implementations

impl<T> Unpin for Monotonic<T> where
    T: Unpin

impl<T> Sync for Monotonic<T> where
    T: Sync

impl<T> Send for Monotonic<T> where
    T: Send

impl<T> UnwindSafe for Monotonic<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Monotonic<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]