pub struct Vertex3D { /* private fields */ }Expand description
Single 3D mesh vertex storing local position and unit surface normal.
Implementations§
Source§impl Vertex3D
impl Vertex3D
pub fn get_position(&self) -> Vec3
pub fn get_mut_position(&mut self) -> &mut Vec3
pub fn set_position(&mut self, val: Vec3) -> &mut Self
pub fn get_normal(&self) -> Vec3
pub fn get_mut_normal(&mut self) -> &mut Vec3
pub fn set_normal(&mut self, val: Vec3) -> &mut Self
Trait Implementations§
impl Copy for Vertex3D
impl StructuralPartialEq for Vertex3D
Auto Trait Implementations§
impl Forget for Vertex3D
impl Freeze for Vertex3D
impl Move for Vertex3D
impl RefUnwindSafe for Vertex3D
impl Send for Vertex3D
impl Sync for Vertex3D
impl Unpin for Vertex3D
impl UnsafeUnpin for Vertex3D
impl UnwindSafe for Vertex3D
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