[−][src]Struct rs_math3d::vector::Vector4
Fields
x: T
y: T
z: T
w: T
Implementations
impl<T: Scalar> Vector4<T>
[src]
pub fn new(x: T, y: T, z: T, w: T) -> Self
[src]
pub fn zero() -> Self
[src]
pub fn length(&self) -> T
[src]
pub fn dot(l: &Self, r: &Self) -> T
[src]
pub fn addVV(l: &Self, r: &Self) -> Self
[src]
pub fn subVV(l: &Self, r: &Self) -> Self
[src]
pub fn mulVV(l: &Self, r: &Self) -> Self
[src]
pub fn divVV(l: &Self, r: &Self) -> Self
[src]
pub fn mulVF(l: &Self, r: T) -> Self
[src]
pub fn divVF(l: &Self, r: T) -> Self
[src]
pub fn remVV(l: &Self, r: &Self) -> Self
[src]
pub fn normalize(v: &Self) -> Self
[src]
pub fn distance(l: &Self, r: &Self) -> T
[src]
pub fn min(l: &Self, r: &Self) -> Self
[src]
pub fn max(l: &Self, r: &Self) -> Self
[src]
Trait Implementations
impl<T> Add<Vector4<T>> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<T: Clone> Clone for Vector4<T>
[src]
fn clone(&self) -> Vector4<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Vector4<T>
[src]
impl<T: Debug> Debug for Vector4<T>
[src]
impl<T> Div<T> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> Div<Vector4<T>> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl<T: Scalar> Mul<Matrix4<T>> for Vector4<T>
[src]
type Output = Vector4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix4<T>) -> Vector4<T>
[src]
impl<T> Mul<T> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> Mul<Vector4<T>> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl<T: Scalar> Mul<Vector4<T>> for Matrix4<T>
[src]
type Output = Vector4<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4<T>) -> Vector4<T>
[src]
impl Mul<Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4<f32>) -> Self::Output
[src]
impl Mul<Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4<f64>) -> Self::Output
[src]
impl Mul<Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4<i32>) -> Self::Output
[src]
impl Mul<Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector4<i64>) -> Self::Output
[src]
impl<T: Scalar> Neg for Vector4<T>
[src]
type Output = Vector4<T>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T> Rem<T> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the %
operator.
fn rem(self, rhs: T) -> Self::Output
[src]
impl<T> Rem<Vector4<T>> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector4<T>
The resulting type after applying the %
operator.
fn rem(self, rhs: Vector4<T>) -> Self::Output
[src]
impl<T> Sub<Vector4<T>> for Vector4<T> where
T: Scalar,
[src]
T: Scalar,
Auto Trait Implementations
impl<T> Send for Vector4<T> where
T: Send,
T: Send,
impl<T> Sync for Vector4<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector4<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,