[][src]Struct lyon_geom::Triangle

pub struct Triangle<S> {
    pub a: Point<S>,
    pub b: Point<S>,
    pub c: Point<S>,
}

A 2D triangle defined by three points a, b and c.

Fields

a: Point<S>b: Point<S>c: Point<S>

Implementations

impl<S: Scalar> Triangle<S>[src]

pub fn contains_point(&self, point: Point<S>) -> bool[src]

pub fn bounding_rect(&self) -> Rect<S>[src]

Return the minimum bounding rectangle.

pub fn ab(&self) -> LineSegment<S>[src]

pub fn ba(&self) -> LineSegment<S>[src]

pub fn bc(&self) -> LineSegment<S>[src]

pub fn cb(&self) -> LineSegment<S>[src]

pub fn ca(&self) -> LineSegment<S>[src]

pub fn ac(&self) -> LineSegment<S>[src]

pub fn transform<T: Transformation<S>>(&self, transform: &T) -> Self[src]

[Not implemented] Applies the transform to this triangle and returns the results.

pub fn intersects(&self, other: &Self) -> bool[src]

Test for triangle-triangle intersection.

pub fn intersects_line_segment(&self, segment: &LineSegment<S>) -> bool[src]

Test for triangle-segment intersection.

Trait Implementations

impl<S: Clone> Clone for Triangle<S>[src]

impl<S: Copy> Copy for Triangle<S>[src]

impl<S: Debug> Debug for Triangle<S>[src]

impl<S: PartialEq> PartialEq<Triangle<S>> for Triangle<S>[src]

impl<S> StructuralPartialEq for Triangle<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Triangle<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for Triangle<S> where
    S: Send
[src]

impl<S> Sync for Triangle<S> where
    S: Sync
[src]

impl<S> Unpin for Triangle<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for Triangle<S> where
    S: UnwindSafe
[src]

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, 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.