[−][src]Struct static_math::vector6::V6
Implementations
impl<T> V6<T>
[src]
impl<T: Num + Copy> V6<T>
[src]
impl<T: Float> V6<T>
[src]
pub fn norm2(&self) -> T
[src]
calculate the euclidean norm of the vector
pub fn normalize(&mut self) -> Result<Self, VectorErrors>
[src]
normalize the current vector and return a new one
Trait Implementations
impl<T: Num + Copy> Add<V6<T>> for V6<T>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl<T: Num + Copy> AddAssign<V6<T>> for V6<T>
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<T: Clone> Clone for V6<T>
[src]
impl<T: Copy> Copy for V6<T>
[src]
impl<T: Debug> Debug for V6<T>
[src]
impl<T> Deref for V6<T>
[src]
impl<T> DerefMut for V6<T>
[src]
impl<T: Num + Display> Display for V6<T>
[src]
impl<T> From<[T; 6]> for V6<T>
[src]
impl<T: Num + Copy> Mul<M66<T>> for V6<T>
[src]
type Output = V6<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: M66<T>) -> V6<T>
[src]
impl<T: Num + Copy> Mul<T> for V6<T>
[src]
type Output = V6<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> V6<T>
[src]
impl<T: Num + Copy + Sum> Mul<V6<T>> for M66<T>
[src]
type Output = V6<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: V6<T>) -> V6<T>
[src]
impl<T: Num + Copy> Mul<V6<T>> for V6<T>
[src]
impl Mul<V6<f32>> for f32
[src]
type Output = V6<f32>
The resulting type after applying the *
operator.
fn mul(self, rhs: V6<f32>) -> V6<f32>
[src]
impl<T: PartialEq> PartialEq<V6<T>> for V6<T>
[src]
impl<T> StructuralPartialEq for V6<T>
[src]
impl<T: Num + Copy> Sub<V6<T>> for V6<T>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl<T: Num + Copy> SubAssign<V6<T>> for V6<T>
[src]
fn sub_assign(&mut self, other: Self)
[src]
impl<T: Num + Copy> Zero for V6<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for V6<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for V6<T> where
T: Send,
T: Send,
impl<T> Sync for V6<T> where
T: Sync,
T: Sync,
impl<T> Unpin for V6<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for V6<T> where
T: UnwindSafe,
T: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,