Struct lyon_geom::Line
[−]
[src]
pub struct Line<S> { pub point: Point<S>, pub vector: Vector<S>, }
An infinite line defined by a point and a vector.
Fields
point: Point<S>
vector: Vector<S>
Methods
impl<S: Scalar> Line<S>
[src]
pub fn intersection(&self, other: &Self) -> Option<Point<S>>
[src]
pub fn signed_distance_to_point(&self, p: &Point<S>) -> S
[src]
pub fn distance_to_point(&self, p: &Point<S>) -> S
[src]
pub fn equation(&self) -> LineEquation<S>
[src]
Trait Implementations
impl<S: Copy> Copy for Line<S>
[src]
impl<S: Clone> Clone for Line<S>
[src]
fn clone(&self) -> Line<S>
[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