pub struct Line<F>where
F: Float,{
pub p0: Pt<F>,
pub p1: Pt<F>,
}
Expand description
A line
use pointy::Line;
let line = Line::new((10.0, 15.0), (0.0, 2.0));
Fields§
§p0: Pt<F>
First point
p1: Pt<F>
Second point
Implementations§
Trait Implementations§
source§impl<F> PartialEq for Line<F>
impl<F> PartialEq for Line<F>
impl<F> Copy for Line<F>
impl<F> Eq for Line<F>
impl<F> StructuralEq for Line<F>where
F: Float,
impl<F> StructuralPartialEq for Line<F>where
F: Float,
Auto Trait Implementations§
impl<F> RefUnwindSafe for Line<F>where
F: RefUnwindSafe,
impl<F> Send for Line<F>where
F: Send,
impl<F> Sync for Line<F>where
F: Sync,
impl<F> Unpin for Line<F>where
F: Unpin,
impl<F> UnwindSafe for Line<F>where
F: UnwindSafe,
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