1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::Point;

#[derive(Default, Debug, Clone, PartialEq, PartialOrd)]
pub struct LineSegment {
    pub a: Point,
    pub b: Point,
}

impl LineSegment {
    pub fn new(a: Point, b: Point) -> Self {
        Self {
            a,
            b,
        }
    }
}