pub enum CutRatioResult {
Begin,
Medium(f64),
End,
}Expand description
CutRatioResult presents the closest projection of the point to the segment.
Variants§
Begin
The closest projection is the start of the segment.
Medium(f64)
The closest projection is the point on the segment that splits it in
the defined proportion (usually 0.0 < ratio < 1.0 where 0.0 is the start
and 1.0 is the end of the segment).
End
The closest projection is the end of the segment.
Trait Implementations§
Source§impl Ord for CutRatioResult
impl Ord for CutRatioResult
Source§impl PartialEq for CutRatioResult
impl PartialEq for CutRatioResult
Source§impl PartialOrd for CutRatioResult
impl PartialOrd for CutRatioResult
impl Eq for CutRatioResult
Auto Trait Implementations§
impl Freeze for CutRatioResult
impl RefUnwindSafe for CutRatioResult
impl Send for CutRatioResult
impl Sync for CutRatioResult
impl Unpin for CutRatioResult
impl UnwindSafe for CutRatioResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more