pub struct Segment2D { /* private fields */ }
Implementations§
Source§impl Segment2D
impl Segment2D
pub fn new(p: &Point2D, e: &Vector2D) -> Self
pub fn with_points(p0: &Point2D, p1: &Point2D) -> Self
pub fn intersect_segment(&self, o: &Segment2D) -> SegmentIntersection
pub fn intersect_line(&self, l: &Line2D) -> SegmentIntersection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment2D
impl RefUnwindSafe for Segment2D
impl Send for Segment2D
impl Sync for Segment2D
impl Unpin for Segment2D
impl UnwindSafe for Segment2D
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