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]
impl<S: Scalar> LineEquation<S>
pub fn new(a: S, b: S, c: S) -> Self
[src]
pub fn new(a: S, b: S, c: S) -> Self
pub fn a(&self) -> S
[src]
pub fn a(&self) -> S
pub fn b(&self) -> S
[src]
pub fn b(&self) -> S
pub fn c(&self) -> S
[src]
pub fn c(&self) -> S
pub fn project_point(&self, p: &Point<S>) -> Point<S>
[src]
pub fn project_point(&self, p: &Point<S>) -> Point<S>
pub fn signed_distance_to_point(&self, p: &Point<S>) -> S
[src]
pub fn signed_distance_to_point(&self, p: &Point<S>) -> S
pub fn distance_to_point(&self, p: &Point<S>) -> S
[src]
pub fn distance_to_point(&self, p: &Point<S>) -> S
pub fn invert(&self) -> Self
[src]
pub fn invert(&self) -> Self
pub fn parallel_line(&self, p: &Point<S>) -> Self
[src]
pub fn parallel_line(&self, p: &Point<S>) -> Self
pub fn offset(&self, d: S) -> Self
[src]
pub fn offset(&self, d: S) -> Self
pub fn tangent(&self) -> Vector<S>
[src]
pub fn tangent(&self) -> Vector<S>
pub fn normal(&self) -> Vector<S>
[src]
pub fn normal(&self) -> Vector<S>
pub fn solve_y_for_x(&self, x: S) -> Option<S>
[src]
pub fn solve_y_for_x(&self, x: S) -> Option<S>
pub fn solve_x_for_y(&self, y: S) -> Option<S>
[src]
pub fn solve_x_for_y(&self, y: S) -> Option<S>
pub fn is_horizontal(&self) -> bool
[src]
pub fn is_horizontal(&self) -> bool
pub fn is_vertical(&self) -> bool
[src]
pub fn is_vertical(&self) -> bool
Trait Implementations
impl<S: Copy> Copy for LineEquation<S>
[src]
impl<S: Copy> Copy for LineEquation<S>
impl<S: Clone> Clone for LineEquation<S>
[src]
impl<S: Clone> Clone for LineEquation<S>
fn clone(&self) -> LineEquation<S>
[src]
fn clone(&self) -> LineEquation<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> Debug for LineEquation<S>
[src]
impl<S: Debug> Debug for LineEquation<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for LineEquation<S>
[src]
impl<S: PartialEq> PartialEq for LineEquation<S>
fn eq(&self, other: &LineEquation<S>) -> bool
[src]
fn eq(&self, other: &LineEquation<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &LineEquation<S>) -> bool
[src]
fn ne(&self, other: &LineEquation<S>) -> bool
This method tests for !=
.
impl<S: Eq> Eq for LineEquation<S>
[src]
impl<S: Eq> Eq for LineEquation<S>
Auto Trait Implementations
impl<S> Send for LineEquation<S> where
S: Send,
impl<S> Send for LineEquation<S> where
S: Send,
impl<S> Sync for LineEquation<S> where
S: Sync,
impl<S> Sync for LineEquation<S> where
S: Sync,