[][src]Struct ommui_frontend_gtk::geometry::Line2d

pub struct Line2d { /* fields omitted */ }

A straight line in the form of:

y = m * x + b

Methods

impl Line2d[src]

pub fn new(a: (f32, f32), b: (f32, f32)) -> Option<Self>[src]

Create a new instance by passing two points.

pub fn intersect(&self, other: &Self) -> Option<(f32, f32)>[src]

Intersect with another line.

Auto Trait Implementations

impl Send for Line2d

impl Sync for Line2d

impl Unpin for Line2d

impl UnwindSafe for Line2d

impl RefUnwindSafe for Line2d

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> SetParameter for T

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]