Struct genmesh::Triangle [] [src]

pub struct Triangle<T> {
    pub x: T,
    pub y: T,
    pub z: T,
}

A polygon with 3 points. Maps to GL_TRIANGLE

Fields

the first point of a triangle

the second point of a triangle

the third point of a triangle

Methods

impl<T> Triangle<T>
[src]

create a new Triangle with supplied vertcies

Trait Implementations

impl<T: Clone> EmitTriangles for Triangle<T>
[src]

The content of each point in the face

convert a polygon to one or more triangles, each triangle is returned by calling emit Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

This method tests for !=.

impl<T: Eq> Eq for Triangle<T>
[src]

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

impl<T: Clone, U> MapVertex<T, U> for Triangle<T>
[src]

Output should be a a container of the same shape of the type It's internal values should reflect any transformation the map did. Read more

map a function to each vertex in polygon creating a new polygon

impl<T: Clone> EmitLines for Triangle<T>
[src]

The Vertex defines the corners of a Polygon

convert a polygon into lines, each line is emitted via calling of the callback of emit This allow for a variable amount of lines to be returned Read more