pub fn new_with_offset(vertices: [Coordinates; 2], offset: Coordinates) -> Self {
        let contents = [
            TexturedGlVertex::from((&Coordinates::new(&vertices[0].x + offset.x, &vertices[0].y + offset.y), &Coordinates::new(0., 0.))),
            TexturedGlVertex::from((&Coordinates::new(&vertices[1].x + offset.x, &vertices[1].y + offset.y), &Coordinates::new(0., 0.))),
        ];
        Self { vertices, contents }
    }
/// Creates a new line using `vertices`.
Creates a new line using `vertices`.
Creates a new line using ` vertices ` .
pub fn new_with_offset(vertices: [Coordinates; 2], offset: Coordinates) -> Self {
        let contents = [
            TexturedGlVertex::from((&Coordinates::new(&vertices[0].x + offset.x, &vertices[0].y + offset.y), &Coordinates::new(0., 0.))),
            TexturedGlVertex::from((&Coordinates::new(&vertices[1].x + offset.x, &vertices[1].y + offset.y), &Coordinates::new(0., 0.))),
        ];
        Self { vertices, contents }
    }
pub fn new_with_offset ( vertices : [ Coordinates ; 2 ] , offset : Coordinates ) -> Self { let contents = [ TexturedGlVertex :: from ( ( & Coordinates :: new ( & vertices [ 0 ] . x + offset . x , & vertices [ 0 ] . y + offset . y ) , & Coordinates :: new ( 0. , 0. ) ) ) , TexturedGlVertex :: from ( ( & Coordinates :: new ( & vertices [ 1 ] . x + offset . x , & vertices [ 1 ] . y + offset . y ) , & Coordinates :: new ( 0. , 0. ) ) ) , ] ; Self { vertices , contents } }
Creates a new line using `vertices`.
Creates a new line using ` vertices ` .
vertices
[Coordinates; 2]
offset
Coordinates
vertices
[Coordinates; 2]
offset
Coordinates