[−][src]Struct lyon_geom::LineEquation
A line defined by the equation
a * x + b * y + c = 0; a * a + b * b = 1
.
Methods
impl<S: Scalar> LineEquation<S>
[src]
pub fn new(a: S, b: S, c: S) -> Self
[src]
pub fn a(&self) -> S
[src]
pub fn b(&self) -> S
[src]
pub fn c(&self) -> S
[src]
pub fn project_point(&self, p: &Point<S>) -> 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 invert(&self) -> Self
[src]
pub fn parallel_line(&self, p: &Point<S>) -> Self
[src]
pub fn offset(&self, d: S) -> Self
[src]
pub fn tangent(&self) -> Vector<S>
[src]
pub fn normal(&self) -> Vector<S>
[src]
pub fn solve_y_for_x(&self, x: S) -> Option<S>
[src]
pub fn solve_x_for_y(&self, y: S) -> Option<S>
[src]
pub fn is_horizontal(&self) -> bool
[src]
pub fn is_vertical(&self) -> bool
[src]
Trait Implementations
impl<S: Copy> Copy for LineEquation<S>
[src]
impl<S: Eq> Eq for LineEquation<S>
[src]
impl<S: Clone> Clone for LineEquation<S>
[src]
fn clone(&self) -> LineEquation<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: PartialEq> PartialEq<LineEquation<S>> for LineEquation<S>
[src]
fn eq(&self, other: &LineEquation<S>) -> bool
[src]
fn ne(&self, other: &LineEquation<S>) -> bool
[src]
impl<S: Debug> Debug for LineEquation<S>
[src]
Auto Trait Implementations
impl<S> Unpin for LineEquation<S> where
S: Unpin,
S: Unpin,
impl<S> Sync for LineEquation<S> where
S: Sync,
S: Sync,
impl<S> Send for LineEquation<S> where
S: Send,
S: Send,
impl<S> UnwindSafe for LineEquation<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for LineEquation<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,