[−][src]Struct rs_math3d::vector::Vector3
Fields
x: T
y: T
z: T
Implementations
impl<T: Scalar> Vector3<T>
[src]
pub fn new(x: T, y: T, z: 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<Vector3<T>> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<T: Clone> Clone for Vector3<T>
[src]
fn clone(&self) -> Vector3<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for Vector3<T>
[src]
impl<T> CrossProduct for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
impl<T: Debug> Debug for Vector3<T>
[src]
impl<T: FloatNum> Distance<T, Vector3<T>> for Plane<T>
[src]
Distance Queries
impl<T: FloatNum> Distance<T, Vector3<T>> for Segment3<T>
[src]
impl<T> Div<T> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> Div<Vector3<T>> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl<T: FloatNum> Intersection<Vector3<T>, Tri3<T>> for Ray3<T>
[src]
Ray-Triangle Intersection Test Routines Different optimizations of my and Ben Trumbore's code from journals of graphics tools (JGT) http://www.acm.org/jgt/ by Tomas Moller, May 2000
fn intersection(&self, tri: &Tri3<T>) -> Option<Vector3<T>>
[src]
impl<T: Scalar> Mul<Matrix3<T>> for Vector3<T>
[src]
type Output = Vector3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Matrix3<T>) -> Vector3<T>
[src]
impl<T> Mul<T> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> Mul<Vector3<T>> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl<T: Scalar> Mul<Vector3<T>> for Matrix3<T>
[src]
type Output = Vector3<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<T>) -> Vector3<T>
[src]
impl Mul<Vector3<f32>> for f32
[src]
type Output = Vector3<f32>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<f32>) -> Self::Output
[src]
impl Mul<Vector3<f64>> for f64
[src]
type Output = Vector3<f64>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<f64>) -> Self::Output
[src]
impl Mul<Vector3<i32>> for i32
[src]
type Output = Vector3<i32>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<i32>) -> Self::Output
[src]
impl Mul<Vector3<i64>> for i64
[src]
type Output = Vector3<i64>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector3<i64>) -> Self::Output
[src]
impl<T: Scalar> Neg for Vector3<T>
[src]
type Output = Vector3<T>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T> Rem<T> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the %
operator.
fn rem(self, rhs: T) -> Self::Output
[src]
impl<T> Rem<Vector3<T>> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
type Output = Vector3<T>
The resulting type after applying the %
operator.
fn rem(self, rhs: Vector3<T>) -> Self::Output
[src]
impl<T> Sub<Vector3<T>> for Vector3<T> where
T: Scalar,
[src]
T: Scalar,
Auto Trait Implementations
impl<T> Send for Vector3<T> where
T: Send,
T: Send,
impl<T> Sync for Vector3<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector3<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>,