[][src]Struct mcsdf::geometry::Line

pub struct Line {
    pub p0: Point2<f32>,
    pub p1: Point2<f32>,
}

Fields

p0: Point2<f32>p1: Point2<f32>

Methods

impl Line[src]

pub fn new(p0: Point2<f32>, p1: Point2<f32>) -> Self[src]

pub fn bounding_box(&self) -> Rect<f32>[src]

pub fn point(&self, t: f32) -> Point2<f32>[src]

pub fn area(&self) -> f32[src]

pub fn signed_distance(&self, p: Point2<f32>) -> SignedDistance[src]

Trait Implementations

impl Copy for Line[src]

impl Clone for Line[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Line[src]

Auto Trait Implementations

impl Send for Line

impl Sync for Line

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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 = Infallible

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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