/// Returns a `Line`
///
/// Validates that the upper left and bottom right points are valid
Returns a `Line`
Validates that the upper left and bottom right points are valid
Returns a ` Line ` Validates that the upper left and bottom right points are valid
pub fn new(ul: impl Into<Point>, br: impl Into<Point>) -> Self {
        // Cast generics into opaque types
        let ul = ul.into();
        let br = br.into();
        // Validate that ul is left of or at the same x coord as br
        assert!(ul.x <= br.x);
        // Validate that ul is above of or at the same y coord as br
        assert!(ul.y <= br.y);
        Self { ul, br }
    }
pub fn new ( ul : impl Into < Point > , br : impl Into < Point > ) -> Self { // Cast generics into opaque types let ul = ul . into ( ) ; let br = br . into ( ) ; // Validate that ul is left of or at the same x coord as br assert ! ( ul x br x ) ; // Validate that ul is above of or at the same y coord as br assert ! ( ul y br y ) ; Self { ul , br } }
Returns a `Line`
Validates that the upper left and bottom right points are valid
Returns a ` Line ` Validates that the upper left and bottom right points are valid
ul
impl Into<Point>
br
impl Into<Point>