[][src]Struct lyon_algorithms::splitter::Splitter

pub struct Splitter { /* fields omitted */ }

A context object that can split the sub paths of AdvancedPath.

Methods

impl Splitter[src]

pub fn new() -> Self[src]

Constructor.

pub fn set_flattening_tolerance(&mut self, tolerance: f32)[src]

Sets the flattening tolerance that will be used to approximate curves if any.

pub fn split_with_segment<'l, P>(
    &mut self,
    path: P,
    segment: &LineSegment<f32>
) -> (Path, Path) where
    P: Into<PathSlice<'l>>, 
[src]

Splits a path using a line segment.

Returns two Path objects, the first one being on the positive side of the line, and the other one on the negative side.

"positive" and "negative" in this context refer to the sign of the cross product between a vector going from the splitting line to the path and the vector of the splitting line.

Curves are flattened.

pub fn split_with_line<'l, P>(
    &mut self,
    path: P,
    line: &Line<f32>
) -> (Path, Path) where
    P: Into<PathSlice<'l>>, 
[src]

Splits a path using a line.

Returns two Path objects, the first one being on the positive side of the line, and the other one on the negative side.

"positive" and "negative" in this context refer to the sign of the cross product between a vector going from the splitting line to the path and the vector of the splitting line.

Curves are flattened.

Auto Trait Implementations

impl Send for Splitter

impl Sync for Splitter

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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