Struct lyon_geom::Monotonic[][src]

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

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

Methods

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

Important traits for &'a mut R

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

Important traits for ArrayVec<A>

Important traits for ArrayVec<A>

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Start of the curve.

End of the curve.

Sample the curve at t (expecting t between 0 and 1).

Sample x at t (expecting t between 0 and 1).

Sample y at t (expecting t between 0 and 1).

Sample the derivative at t (expecting t between 0 and 1).

Sample x derivative at t (expecting t between 0 and 1).

Sample y derivative at t (expecting t between 0 and 1).

Split this curve into two sub-curves.

Return the curve before the split point.

Return the curve after the split point.

Return the curve inside a given range of t. Read more

Swap the direction of the segment.

Compute the length of the segment using a flattened approximation.

Auto Trait Implementations

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

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