Struct piet_common::kurbo::LineIntersection
Expand description
An intersection of a Line and a PathSeg.
This can be generated with the PathSeg::intersect_line method.
Fields
line_t: f64The ‘time’ that the intersection occurs, on the line.
This value is in the range 0..1.
segment_t: f64The ‘time’ that the intersection occurs, on the path segment.
This value is nominally in the range 0..1, although it may slightly exceed that range at the boundaries of segments.
Implementations
impl LineIntersection
impl LineIntersection
Trait Implementations
impl Clone for LineIntersection
impl Clone for LineIntersection
fn clone(&self) -> LineIntersection
fn clone(&self) -> LineIntersection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for LineIntersection
impl Debug for LineIntersection
impl Copy for LineIntersection
Auto Trait Implementations
impl RefUnwindSafe for LineIntersection
impl Send for LineIntersection
impl Sync for LineIntersection
impl Unpin for LineIntersection
impl UnwindSafe for LineIntersection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.