Struct nobject_rs::Vertex
source · pub struct Vertex {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: Option<f32>,
}
Expand description
Representation of vertex data. The w component is optional.
Fields§
§x: f32
X coordinate
y: f32
Y coordinate
z: f32
Z coordinate
w: Option<f32>
Optional W coordinate
Implementations§
Trait Implementations§
source§impl PartialEq for Vertex
impl PartialEq for Vertex
impl Copy for Vertex
impl StructuralPartialEq for Vertex
Auto Trait Implementations§
impl Freeze for Vertex
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
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