[][src]Struct vec_arith::Vec4

pub struct Vec4<T>(_, _, _, _);

Methods

impl Vec4<f32>
[src]

pub fn abs(self) -> Self
[src]

pub fn powf(self, rhs: Self) -> Self
[src]

pub fn powi(self, rhs: Vec4<i32>) -> Self
[src]

pub fn sqrt(self) -> Self
[src]

pub fn cbrt(self) -> Self
[src]

pub fn log(self, rhs: Self) -> Self
[src]

pub fn len(self) -> f32
[src]

pub fn normalize(self, len: f32) -> Self
[src]

pub fn distance(self, other: Self) -> f32
[src]

pub fn angle(self, other: Self) -> f32
[src]

impl Vec4<f64>
[src]

pub fn abs(self) -> Self
[src]

pub fn powf(self, rhs: Self) -> Self
[src]

pub fn powi(self, rhs: Vec4<i32>) -> Self
[src]

pub fn sqrt(self) -> Self
[src]

pub fn cbrt(self) -> Self
[src]

pub fn log(self, rhs: Self) -> Self
[src]

pub fn len(self) -> f64
[src]

pub fn normalize(self, len: f64) -> Self
[src]

pub fn distance(self, other: Self) -> f64
[src]

pub fn angle(self, other: Self) -> f64
[src]

impl<T: PartialOrd + Copy> Vec4<T>
[src]

pub fn min(self, other: Self) -> Self
[src]

pub fn mins(self, other: T) -> Self
[src]

pub fn max(self, other: Self) -> Self
[src]

pub fn maxs(self, other: T) -> Self
[src]

pub fn clamp(self, lower: Self, upper: Self) -> Self
[src]

pub fn clamps(self, lower: T, upper: T) -> Self
[src]

impl<T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy> Vec4<T>
[src]

pub fn dot(self, other: Self) -> T
[src]

pub fn mix(self, a: Self, b: Self) -> Self
[src]

impl Vec4<f32>
[src]

pub fn from_rotation_x(angle: f32) -> Self
[src]

pub fn from_rotation_y(angle: f32) -> Self
[src]

pub fn from_rotation_z(angle: f32) -> Self
[src]

pub fn from_axis_angle(axis: Vec3<f32>, angle: f32) -> Self
[src]

pub fn to_axis_angle(self) -> (Vec3<f32>, f32)
[src]

pub fn rotate_x_local(self, angle: f32) -> Self
[src]

pub fn rotate_y_local(self, angle: f32) -> Self
[src]

pub fn rotate_z_local(self, angle: f32) -> Self
[src]

pub fn rotate_x(self, angle: f32) -> Self
[src]

pub fn rotate_y(self, angle: f32) -> Self
[src]

pub fn rotate_z(self, angle: f32) -> Self
[src]

pub fn rotate_axis(self, axis: Vec3<f32>, angle: f32) -> Self
[src]

impl Vec4<f64>
[src]

pub fn from_rotation_x(angle: f64) -> Self
[src]

pub fn from_rotation_y(angle: f64) -> Self
[src]

pub fn from_rotation_z(angle: f64) -> Self
[src]

pub fn from_axis_angle(axis: Vec3<f64>, angle: f64) -> Self
[src]

pub fn to_axis_angle(self) -> (Vec3<f64>, f64)
[src]

pub fn rotate_x_local(self, angle: f64) -> Self
[src]

pub fn rotate_y_local(self, angle: f64) -> Self
[src]

pub fn rotate_z_local(self, angle: f64) -> Self
[src]

pub fn rotate_x(self, angle: f64) -> Self
[src]

pub fn rotate_y(self, angle: f64) -> Self
[src]

pub fn rotate_z(self, angle: f64) -> Self
[src]

pub fn rotate_axis(self, axis: Vec3<f64>, angle: f64) -> Self
[src]

Trait Implementations

impl<T: Copy> From<T> for Vec4<T>
[src]

impl<T: Copy> From<[T; 4]> for Vec4<T>
[src]

impl<T> From<(T, T, T, T)> for Vec4<T>
[src]

impl<T: PartialOrd> PartialOrd<Vec4<T>> for Vec4<T>
[src]

impl<T: Copy> Copy for Vec4<T>
[src]

impl<T: PartialEq> PartialEq<Vec4<T>> for Vec4<T>
[src]

impl<T: Clone> Clone for Vec4<T>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Vec4<T>
[src]

impl<T: Add<Output = U>, U> Add<Vec4<T>> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the + operator.

impl<T: Sub<Output = U>, U> Sub<Vec4<T>> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the - operator.

impl<T: Mul<Output = U>, U> Mul<Vec4<T>> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the * operator.

impl<T: Mul<Output = U> + Copy, U> Mul<T> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the * operator.

impl<T: Div<Output = U>, U> Div<Vec4<T>> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the / operator.

impl<T: Div<Output = U> + Copy, U> Div<T> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the / operator.

impl<T: Rem<Output = U>, U> Rem<Vec4<T>> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the % operator.

impl<T: Rem<Output = U> + Copy, U> Rem<T> for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the % operator.

impl<T: Neg<Output = U>, U> Neg for Vec4<T>
[src]

type Output = Vec4<U>

The resulting type after applying the - operator.

impl<T: AddAssign> AddAssign<Vec4<T>> for Vec4<T>
[src]

impl<T: SubAssign> SubAssign<Vec4<T>> for Vec4<T>
[src]

impl<T: MulAssign> MulAssign<Vec4<T>> for Vec4<T>
[src]

impl<T: MulAssign + Copy> MulAssign<T> for Vec4<T>
[src]

impl<T: DivAssign> DivAssign<Vec4<T>> for Vec4<T>
[src]

impl<T: DivAssign + Copy> DivAssign<T> for Vec4<T>
[src]

impl<T: RemAssign> RemAssign<Vec4<T>> for Vec4<T>
[src]

impl<T: RemAssign + Copy> RemAssign<T> for Vec4<T>
[src]

Auto Trait Implementations

impl<T> Send for Vec4<T> where
    T: Send

impl<T> Sync for Vec4<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]