[][src]Struct quicksilver::geom::Triangle

pub struct Triangle {
    pub a: Vector,
    pub b: Vector,
    pub c: Vector,
}

A triangle with three points

Fields

The first point

The second point

The third point

Methods

impl Triangle
[src]

Create a triangle from Vectors of all three points

Calculate the area of the triangle

Trait Implementations

impl Shape for Triangle
[src]

Create a copy of the shape that is contained within the bound

Create a copy of the shape with an offset center

impl Drawable for Triangle
[src]

impl PartialEq<Triangle> for Triangle
[src]

This method tests for !=.

impl Clone for Triangle
[src]

Performs copy-assignment from source. Read more

impl Copy for Triangle
[src]

impl Eq for Triangle
[src]

impl Default for Triangle
[src]

impl Debug for Triangle
[src]

impl Serialize for Triangle
[src]

impl<'de> Deserialize<'de> for Triangle
[src]

Auto Trait Implementations

impl Send for Triangle

impl Sync for Triangle

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

Tests if Self the same as the type T Read more

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]