Struct obs_wrapper::graphics::Vec3
source · [−]pub struct Vec3 { /* private fields */ }Implementations
sourceimpl Vec3
impl Vec3
pub fn new(x: f32, y: f32, z: f32) -> Self
pub fn zero(&mut self)
pub fn copy(&mut self, input: &Vec3)
pub fn add(&mut self, input: &Vec3)
pub fn sub(&mut self, input: &Vec3)
pub fn mul(&mut self, input: &Vec3)
pub fn div(&mut self, input: &Vec3)
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: &Vec3) -> f32
pub fn len(&mut self) -> f32
pub fn set(&mut self, x: f32, y: f32, z: f32)
pub fn min(&mut self, input: &Vec3)
pub fn max(&mut self, input: &Vec3)
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: &Vec3, epsilon: f32) -> bool
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn z(&self) -> f32
pub unsafe fn as_ptr(&mut self) -> *mut vec3
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Vec3
impl Send for Vec3
impl Sync for Vec3
impl Unpin for Vec3
impl UnwindSafe for Vec3
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more