[−][src]Struct lyon_algorithms::splitter::Splitter
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]
&mut self,
path: P,
segment: &LineSegment<f32>
) -> (Path, Path) where
P: Into<PathSlice<'l>>,
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]
&mut self,
path: P,
line: &Line<f32>
) -> (Path, Path) where
P: Into<PathSlice<'l>>,
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,