#[repr(C)]pub struct Triangle {
pub v1: [f32; 3],
pub v2: [f32; 3],
pub v3: [f32; 3],
}Expand description
Each facet contains a copy of all three vertex coordinates and a normal
Fields§
§v1: [f32; 3]§v2: [f32; 3]§v3: [f32; 3]Trait Implementations§
impl Copy for Triangle
impl StructuralPartialEq for Triangle
Auto Trait Implementations§
impl Freeze for Triangle
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnwindSafe for Triangle
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