1 2 3 4 5 6 7 8 9 10 11
/// A straight line from one point to another. pub struct Line { pub start: Point, pub end: Point, } /// A 2D point. pub struct Point { pub x: i32, pub y: i32, }