[−][src]Struct lyon_geom::Monotonic
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]
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> ArrayVec<[(S, S); 2]>
pub fn intersections(
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> ArrayVec<[Point<S>; 2]>
[src]
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> ArrayVec<[Point<S>; 2]>
pub fn first_intersection_t(
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> Option<(S, S)>
[src]
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> Option<(S, S)>
pub fn first_intersection(
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> Option<Point<S>>
[src]
&self,
self_t_range: Range<S>,
other: &Self,
other_t_range: Range<S>,
tolerance: S
) -> Option<Point<S>>
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
fn from(&self) -> Point<T::Scalar>
[src]
fn to(&self) -> Point<T::Scalar>
[src]
fn sample(&self, t: T::Scalar) -> Point<T::Scalar>
[src]
fn x(&self, t: T::Scalar) -> T::Scalar
[src]
fn y(&self, t: T::Scalar) -> T::Scalar
[src]
fn derivative(&self, t: T::Scalar) -> Vector<T::Scalar>
[src]
fn dx(&self, t: T::Scalar) -> T::Scalar
[src]
fn dy(&self, t: T::Scalar) -> T::Scalar
[src]
fn split(&self, t: T::Scalar) -> (Self, Self)
[src]
fn before_split(&self, t: T::Scalar) -> Self
[src]
fn after_split(&self, t: T::Scalar) -> Self
[src]
fn split_range(&self, t_range: Range<T::Scalar>) -> Self
[src]
fn flip(&self) -> Self
[src]
fn approximate_length(&self, tolerance: T::Scalar) -> T::Scalar
[src]
impl<T: Copy> Copy for Monotonic<T>
[src]
impl<T: Clone> Clone for Monotonic<T>
[src]
fn clone(&self) -> 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,
T: Unpin,
impl<T> Sync for Monotonic<T> where
T: Sync,
T: Sync,
impl<T> Send for Monotonic<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for Monotonic<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Monotonic<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,