pub struct Vec4 { /* private fields */ }Expand description
Four-dimensional floating-point vector for RGBA factors, tangents with handedness, and clip coordinates.
Implementations§
Source§impl Vec4
Arithmetic and conversion helpers for Vec4.
impl Vec4
Arithmetic and conversion helpers for Vec4.
Source§impl Vec4
impl Vec4
pub fn get_x(&self) -> f32
pub fn get_mut_x(&mut self) -> &mut f32
pub fn set_x(&mut self, val: f32) -> &mut Self
pub fn get_y(&self) -> f32
pub fn get_mut_y(&mut self) -> &mut f32
pub fn set_y(&mut self, val: f32) -> &mut Self
pub fn get_z(&self) -> f32
pub fn get_mut_z(&mut self) -> &mut f32
pub fn set_z(&mut self, val: f32) -> &mut Self
pub fn get_w(&self) -> f32
pub fn get_mut_w(&mut self) -> &mut f32
pub fn set_w(&mut self, val: f32) -> &mut Self
Trait Implementations§
impl Copy for Vec4
impl StructuralPartialEq for Vec4
Auto Trait Implementations§
impl Forget for Vec4
impl Freeze for Vec4
impl Move for Vec4
impl RefUnwindSafe for Vec4
impl Send for Vec4
impl Sync for Vec4
impl Unpin for Vec4
impl UnsafeUnpin for Vec4
impl UnwindSafe for Vec4
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