pub struct Line2D { /* private fields */ }
Implementations§
Source§impl Line2D
impl Line2D
pub fn new(normal: Vector2D, a: f64) -> Self
pub fn with_points(p0: &Point2D, p1: &Point2D) -> Self
pub fn point_relation(&self, p: &Point2D) -> PointLineRelation
pub fn segment_relation(&self, s: &Segment2D) -> SegmentLineRelation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Line2D
impl RefUnwindSafe for Line2D
impl Send for Line2D
impl Sync for Line2D
impl Unpin for Line2D
impl UnwindSafe for Line2D
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