Struct lyon_geom::LineEquation
[−]
[src]
pub struct LineEquation<S> { /* fields omitted */ }
A line defined by the equation
a * x + b * y + c = 0; a * a + b * b = 1
.
Methods
impl<S: Scalar> LineEquation<S>
[src]
fn new(a: S, b: S, c: S) -> Self
[src]
fn a(&self) -> S
[src]
fn b(&self) -> S
[src]
fn c(&self) -> S
[src]
fn project_point(&self, p: &Point<S>) -> Point<S>
[src]
fn signed_distance_to_point(&self, p: &Point<S>) -> S
[src]
fn distance_to_point(&self, p: &Point<S>) -> S
[src]
fn invert(&self) -> Self
[src]
fn parallel_line(&self, p: &Point<S>) -> Self
[src]
fn offset(&self, d: S) -> Self
[src]
fn tangent(&self) -> Vector<S>
[src]
fn normal(&self) -> Vector<S>
[src]
fn solve_y_for_x(&self, x: S) -> Option<S>
[src]
fn solve_x_for_y(&self, y: S) -> Option<S>
[src]
fn is_horizontal(&self) -> bool
[src]
fn is_vertical(&self) -> bool
[src]
Trait Implementations
impl<S: Copy> Copy for LineEquation<S>
[src]
impl<S: Clone> Clone for LineEquation<S>
[src]
fn clone(&self) -> LineEquation<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
impl<S: Debug> Debug for LineEquation<S>
[src]
impl<S: PartialEq> PartialEq for LineEquation<S>
[src]
fn eq(&self, __arg_0: &LineEquation<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LineEquation<S>) -> bool
[src]
This method tests for !=
.