pub struct GouraudVertex {
pub flag: u8,
pub x: f64,
pub y: f64,
pub color: Color,
}Expand description
A single vertex of a Type 4 free-form Gouraud-shaded triangle mesh
(ISO 32000-1 §8.7.4.5.5). flag is the edge flag (0 starts a new
triangle; 1 and 2 share an edge with the previous triangle).
Fields§
§flag: u8Edge flag (0, 1, or 2).
x: f64X coordinate in shading space.
y: f64Y coordinate in shading space.
color: ColorVertex colour.
Trait Implementations§
Source§impl Clone for GouraudVertex
impl Clone for GouraudVertex
Source§fn clone(&self) -> GouraudVertex
fn clone(&self) -> GouraudVertex
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 moreSource§impl Debug for GouraudVertex
impl Debug for GouraudVertex
Source§impl PartialEq for GouraudVertex
impl PartialEq for GouraudVertex
impl StructuralPartialEq for GouraudVertex
Auto Trait Implementations§
impl Freeze for GouraudVertex
impl RefUnwindSafe for GouraudVertex
impl Send for GouraudVertex
impl Sync for GouraudVertex
impl Unpin for GouraudVertex
impl UnsafeUnpin for GouraudVertex
impl UnwindSafe for GouraudVertex
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