pub struct Vec4 { /* private fields */ }Implementations§
Source§impl Vec4
impl Vec4
pub fn new(x: f32, y: f32, z: f32, w: f32) -> Self
pub fn zero(&mut self)
pub fn copy(&mut self, input: &Vec4)
pub fn add(&mut self, input: &Vec4)
pub fn sub(&mut self, input: &Vec4)
pub fn mul(&mut self, input: &Vec4)
pub fn div(&mut self, input: &Vec4)
pub fn addf(&mut self, input: f32)
pub fn subf(&mut self, input: f32)
pub fn mulf(&mut self, input: f32)
pub fn divf(&mut self, input: f32)
pub fn neg(&mut self)
pub fn dot(&mut self, input: &Vec4) -> f32
pub fn len(&mut self) -> f32
pub fn set(&mut self, x: f32, y: f32, z: f32, w: f32)
pub fn min(&mut self, input: &Vec4)
pub fn max(&mut self, input: &Vec4)
pub fn minf(&mut self, input: f32)
pub fn maxf(&mut self, input: f32)
pub fn abs(&mut self)
pub fn ceil(&mut self)
pub fn floor(&mut self)
pub fn close(&mut self, input: &Vec4, epsilon: f32) -> bool
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn z(&self) -> f32
pub fn w(&self) -> f32
pub fn as_ptr(&mut self) -> *mut vec4
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vec4
impl RefUnwindSafe for Vec4
impl Send for Vec4
impl Sync for Vec4
impl Unpin 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