pub struct MeshTriangle {
pub vertices: [MeshVertex; 3],
}Expand description
One Gouraud-shaded triangle of a Type 4 / Type 5 mesh (§8.7.4.5.5).
Fields§
§vertices: [MeshVertex; 3]The three vertices, in stream order. The shaded colour at an interior point is the barycentric-linear blend of the three vertex colours (Gouraud interpolation).
Trait Implementations§
Source§impl Clone for MeshTriangle
impl Clone for MeshTriangle
Source§fn clone(&self) -> MeshTriangle
fn clone(&self) -> MeshTriangle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeshTriangle
Source§impl Debug for MeshTriangle
impl Debug for MeshTriangle
Source§impl PartialEq for MeshTriangle
impl PartialEq for MeshTriangle
Source§fn eq(&self, other: &MeshTriangle) -> bool
fn eq(&self, other: &MeshTriangle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MeshTriangle
Auto Trait Implementations§
impl Freeze for MeshTriangle
impl RefUnwindSafe for MeshTriangle
impl Send for MeshTriangle
impl Sync for MeshTriangle
impl Unpin for MeshTriangle
impl UnsafeUnpin for MeshTriangle
impl UnwindSafe for MeshTriangle
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