Struct lyon::geom::Triangle []

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

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

Fields

Methods

impl<S> Triangle<S> where
    S: Scalar, 

Return the minimum bounding rectangle.

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

Test for triangle-triangle intersection.

Test for triangle-segment intersection.

Trait Implementations

impl<S> Copy for Triangle<S> where
    S: Copy

impl<S> PartialEq<Triangle<S>> for Triangle<S> where
    S: PartialEq<S>, 

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S> Clone for Triangle<S> where
    S: Clone

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S> Debug for Triangle<S> where
    S: Debug

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for Triangle<S> where
    S: Send

impl<S> Sync for Triangle<S> where
    S: Sync