#[repr(transparent)]pub struct Vec3 { /* private fields */ }
Implementations
sourceimpl Vec3
impl Vec3
pub fn add(&self, b: &Vec3) -> Vec3
pub fn cross(&self, b: &Vec3) -> Vec3
pub fn divide(&self, b: &Vec3) -> Vec3
pub fn dot(&self, b: &Vec3) -> f32
pub fn x(&self) -> f32
pub fn xy(&self) -> Vec2
pub fn xy0(&self) -> Vec3
pub fn xyz0(&self) -> Vec4
pub fn xyz1(&self) -> Vec4
pub fn xyzw(&self, w: f32) -> Vec4
pub fn y(&self) -> f32
pub fn z(&self) -> f32
pub fn interpolate(&self, v2: &Vec3, factor: f64) -> Vec3
pub fn length(&self) -> f32
pub fn max(&self, b: &Vec3) -> Vec3
pub fn min(&self, b: &Vec3) -> Vec3
pub fn multiply(&self, b: &Vec3) -> Vec3
pub fn near(&self, v2: &Vec3, epsilon: f32) -> bool
pub fn negate(&self) -> Vec3
pub fn normalize(&self) -> Vec3
pub fn scale(&self, factor: f32) -> Vec3
pub fn subtract(&self, b: &Vec3) -> Vec3
pub fn one() -> Vec3
pub fn x_axis() -> Vec3
pub fn y_axis() -> Vec3
pub fn z_axis() -> Vec3
pub fn zero() -> Vec3
Trait Implementations
sourceimpl PartialEq<Vec3> for Vec3
impl PartialEq<Vec3> for Vec3
sourceimpl StaticType for Vec3
impl StaticType for Vec3
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Copy for Vec3
impl Eq for Vec3
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.