Struct quicksilver::geom::Line
[−]
[src]
pub struct Line { pub start: Vector, pub end: Vector, }
Represents a 2D line segment
Fields
start: Vector
end: Vector
Methods
impl Line
[src]
fn new(start: Vector, end: Vector) -> Line
[src]
fn intersects(self, other: Line) -> bool
[src]
Check if two line segments interact
fn contains(self, other: Vector) -> bool
[src]
fn translate(self, other: Vector) -> Line
[src]
Trait Implementations
impl Copy for Line
[src]
impl Clone for Line
[src]
fn clone(&self) -> Line
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more