Expand description
Vector (as in linear algebra, not as in Vec
!) with four elements.
Fields
x: f32
y: f32
z: f32
w: f32
Implementations
impl Vec4
impl Vec4
pub fn is_equal_enough(&self, other: &Vec4) -> bool
pub fn to_hex_string(&self) -> String
pub fn as_mut_array(&mut self) -> &mut [f32; 4]
Trait Implementations
pub fn add_assign(&mut self, rhs: Vec4)
pub fn add_assign(&mut self, rhs: Vec4)
Performs the +=
operation. Read more
pub fn add_assign(&mut self, rhs: f32)
pub fn add_assign(&mut self, rhs: f32)
Performs the +=
operation. Read more
pub fn div_assign(&mut self, rhs: Vec4)
pub fn div_assign(&mut self, rhs: Vec4)
Performs the /=
operation. Read more
pub fn div_assign(&mut self, rhs: f32)
pub fn div_assign(&mut self, rhs: f32)
Performs the /=
operation. Read more
pub fn mul_assign(&mut self, rhs: Vec4)
pub fn mul_assign(&mut self, rhs: Vec4)
Performs the *=
operation. Read more
pub fn mul_assign(&mut self, rhs: f32)
pub fn mul_assign(&mut self, rhs: f32)
Performs the *=
operation. Read more
pub fn sub_assign(&mut self, rhs: Vec4)
pub fn sub_assign(&mut self, rhs: Vec4)
Performs the -=
operation. Read more
pub fn sub_assign(&mut self, rhs: f32)
pub fn sub_assign(&mut self, rhs: f32)
Performs the -=
operation. Read more
impl StructuralPartialEq for Vec4
Auto Trait Implementations
impl RefUnwindSafe for Vec4
impl UnwindSafe for Vec4
Blanket Implementations
Mutably borrows from an owned value. Read more