Struct lyon_algorithms::geom::Line [−]
pub struct Line<S> { pub point: TypedPoint2D<S, UnknownUnit>, pub vector: TypedVector2D<S, UnknownUnit>, }
An infinite line defined by a point and a vector.
Fields
point: TypedPoint2D<S, UnknownUnit>
vector: TypedVector2D<S, UnknownUnit>
Methods
impl<S> Line<S> where
S: Scalar,
impl<S> Line<S> where
S: Scalar,
pub fn intersection(
&self,
other: &Line<S>
) -> Option<TypedPoint2D<S, UnknownUnit>>
pub fn intersection(
&self,
other: &Line<S>
) -> Option<TypedPoint2D<S, UnknownUnit>>
pub fn signed_distance_to_point(&self, p: &TypedPoint2D<S, UnknownUnit>) -> S
pub fn signed_distance_to_point(&self, p: &TypedPoint2D<S, UnknownUnit>) -> S
pub fn distance_to_point(&self, p: &TypedPoint2D<S, UnknownUnit>) -> S
pub fn distance_to_point(&self, p: &TypedPoint2D<S, UnknownUnit>) -> S
pub fn equation(&self) -> LineEquation<S>
pub fn equation(&self) -> LineEquation<S>
Trait Implementations
impl<S> Clone for Line<S> where
S: Clone,
impl<S> Clone for Line<S> where
S: Clone,
fn clone(&self) -> Line<S>
fn clone(&self) -> Line<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S> Debug for Line<S> where
S: Debug,
impl<S> Debug for Line<S> where
S: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<S> Copy for Line<S> where
S: Copy,
impl<S> Copy for Line<S> where
S: Copy,