pub struct Triangle<T> {
pub x: T,
pub y: T,
pub z: T,
}
Expand description
A polygon with 3 points. Maps to GL_TRIANGLE
Fields§
§x: T
the first point of a triangle
y: T
the second point of a triangle
z: T
the third point of a triangle
Implementations§
Trait Implementations§
Source§impl<T: Clone> EmitTriangles for Triangle<T>
impl<T: Clone> EmitTriangles for Triangle<T>
Source§impl IndexedPolygon<Triangle<usize>> for Cone
impl IndexedPolygon<Triangle<usize>> for Cone
Source§fn indexed_polygon(&self, idx: usize) -> Triangle<usize>
fn indexed_polygon(&self, idx: usize) -> Triangle<usize>
return a polygon with indices to the shared vertex
Source§fn indexed_polygon_count(&self) -> usize
fn indexed_polygon_count(&self) -> usize
return the number of polygons that are needed to represent this mesh
Source§fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V> ⓘ
fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V> ⓘ
create a iterator that will return a polygon for each face in the source mesh
Source§impl IndexedPolygon<Triangle<usize>> for IcoSphere
impl IndexedPolygon<Triangle<usize>> for IcoSphere
Source§fn indexed_polygon_count(&self) -> usize
fn indexed_polygon_count(&self) -> usize
return the number of polygons that are needed to represent this mesh
Source§fn indexed_polygon(&self, idx: usize) -> Triangle<usize>
fn indexed_polygon(&self, idx: usize) -> Triangle<usize>
return a polygon with indices to the shared vertex
Source§fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V> ⓘ
fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V> ⓘ
create a iterator that will return a polygon for each face in the source mesh
impl<T: Copy> Copy for Triangle<T>
impl<T: Eq> Eq for Triangle<T>
impl<T> StructuralPartialEq for Triangle<T>
Auto Trait Implementations§
impl<T> Freeze for Triangle<T>where
T: Freeze,
impl<T> RefUnwindSafe for Triangle<T>where
T: RefUnwindSafe,
impl<T> Send for Triangle<T>where
T: Send,
impl<T> Sync for Triangle<T>where
T: Sync,
impl<T> Unpin for Triangle<T>where
T: Unpin,
impl<T> UnwindSafe for Triangle<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more