Struct genmesh::Quad[][src]

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

A polygon with 4 points. Maps to GL_QUADS

Fields

the first point of a quad

the second point of a quad

the third point of a quad

the fourth point of a quad

Methods

impl<T> Quad<T>
[src]

create a new Quad with supplied vertices

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Quad<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 Quad<T>
[src]

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

impl<T: Clone, U> MapVertex<T, U> for Quad<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 Quad<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

impl<T: Clone> EmitTriangles for Quad<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 IndexedPolygon<Quad<usize>> for Cube
[src]

return a polygon with indices to the shared vertex

return the number of polygons that are needed to represent this mesh

Important traits for IndexedPolygonIterator<'a, T, V>

create a iterator that will return a polygon for each face in the source mesh

impl IndexedPolygon<Quad<usize>> for Plane
[src]

return a polygon with indices to the shared vertex

return the number of polygons that are needed to represent this mesh

Important traits for IndexedPolygonIterator<'a, T, V>

create a iterator that will return a polygon for each face in the source mesh

impl IndexedPolygon<Quad<usize>> for Torus
[src]

return a polygon with indices to the shared vertex

return the number of polygons that are needed to represent this mesh

Important traits for IndexedPolygonIterator<'a, T, V>

create a iterator that will return a polygon for each face in the source mesh

Auto Trait Implementations

impl<T> Send for Quad<T> where
    T: Send

impl<T> Sync for Quad<T> where
    T: Sync