[][src]Struct rust_3d::LineSegment2D

pub struct LineSegment2D {
    pub start: Point2D,
    pub end: Point2D,
}

LineSegment2D, a line segment within 2D space

Fields

start: Point2Dend: Point2D

Implementations

impl LineSegment2D[src]

pub fn new(start: Point2D, end: Point2D) -> Self[src]

Creates a new LineSegment2D from a start and end Point

Trait Implementations

impl Clone for LineSegment2D[src]

impl Debug for LineSegment2D[src]

impl Display for LineSegment2D[src]

impl Eq for LineSegment2D[src]

impl HasBoundingBox2DMaybe for LineSegment2D[src]

impl HasCenterOfGravity2D for LineSegment2D[src]

impl HasLength for LineSegment2D[src]

impl Hash for LineSegment2D[src]

impl IsMatrix3Transformable for LineSegment2D[src]

impl IsMovable2D for LineSegment2D[src]

impl IsScalable for LineSegment2D[src]

impl PartialEq<LineSegment2D> for LineSegment2D[src]

impl PartialOrd<LineSegment2D> for LineSegment2D[src]

impl StructuralEq for LineSegment2D[src]

impl StructuralPartialEq for LineSegment2D[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.