[−][src]Struct vec_arith::Vec4
Methods
impl Vec4<f32>
[src]
impl Vec4<f32>
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]
impl Vec4<f64>
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]
impl<T: PartialOrd + Copy> Vec4<T>
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]
impl<T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy> Vec4<T>
impl Vec4<f32>
[src]
impl Vec4<f32>
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]
impl Vec4<f64>
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> for Vec4<T>
impl<T: Copy> From<[T; 4]> for Vec4<T>
[src]
impl<T: Copy> From<[T; 4]> for Vec4<T>
impl<T> From<(T, T, T, T)> for Vec4<T>
[src]
impl<T> From<(T, T, T, T)> for Vec4<T>
impl<T: PartialOrd> PartialOrd<Vec4<T>> for Vec4<T>
[src]
impl<T: PartialOrd> PartialOrd<Vec4<T>> for Vec4<T>
fn partial_cmp(&self, other: &Vec4<T>) -> Option<Ordering> | [src] |
fn lt(&self, other: &Vec4<T>) -> bool | [src] |
fn le(&self, other: &Vec4<T>) -> bool | [src] |
fn gt(&self, other: &Vec4<T>) -> bool | [src] |
fn ge(&self, other: &Vec4<T>) -> bool | [src] |
impl<T: Copy> Copy for Vec4<T>
[src]
impl<T: Copy> Copy for Vec4<T>
impl<T: PartialEq> PartialEq<Vec4<T>> for Vec4<T>
[src]
impl<T: PartialEq> PartialEq<Vec4<T>> for Vec4<T>
impl<T: Clone> Clone for Vec4<T>
[src]
impl<T: Clone> Clone for Vec4<T>
fn clone(&self) -> 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: Debug> Debug for Vec4<T>
impl<T: Add<Output = U>, U> Add<Vec4<T>> for Vec4<T>
[src]
impl<T: Add<Output = U>, U> Add<Vec4<T>> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output | [src] |
impl<T: Sub<Output = U>, U> Sub<Vec4<T>> for Vec4<T>
[src]
impl<T: Sub<Output = U>, U> Sub<Vec4<T>> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output | [src] |
impl<T: Mul<Output = U>, U> Mul<Vec4<T>> for Vec4<T>
[src]
impl<T: Mul<Output = U>, U> Mul<Vec4<T>> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output | [src] |
impl<T: Mul<Output = U> + Copy, U> Mul<T> for Vec4<T>
[src]
impl<T: Mul<Output = U> + Copy, U> Mul<T> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output | [src] |
impl<T: Div<Output = U>, U> Div<Vec4<T>> for Vec4<T>
[src]
impl<T: Div<Output = U>, U> Div<Vec4<T>> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output | [src] |
impl<T: Div<Output = U> + Copy, U> Div<T> for Vec4<T>
[src]
impl<T: Div<Output = U> + Copy, U> Div<T> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output | [src] |
impl<T: Rem<Output = U>, U> Rem<Vec4<T>> for Vec4<T>
[src]
impl<T: Rem<Output = U>, U> Rem<Vec4<T>> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self::Output | [src] |
impl<T: Rem<Output = U> + Copy, U> Rem<T> for Vec4<T>
[src]
impl<T: Rem<Output = U> + Copy, U> Rem<T> for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the %
operator.
fn rem(self, rhs: T) -> Self::Output | [src] |
impl<T: Neg<Output = U>, U> Neg for Vec4<T>
[src]
impl<T: Neg<Output = U>, U> Neg for Vec4<T>
type Output = Vec4<U>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output | [src] |
impl<T: AddAssign> AddAssign<Vec4<T>> for Vec4<T>
[src]
impl<T: AddAssign> AddAssign<Vec4<T>> for Vec4<T>
fn add_assign(&mut self, rhs: Self) | [src] |
impl<T: SubAssign> SubAssign<Vec4<T>> for Vec4<T>
[src]
impl<T: SubAssign> SubAssign<Vec4<T>> for Vec4<T>
fn sub_assign(&mut self, rhs: Self) | [src] |
impl<T: MulAssign> MulAssign<Vec4<T>> for Vec4<T>
[src]
impl<T: MulAssign> MulAssign<Vec4<T>> for Vec4<T>
fn mul_assign(&mut self, rhs: Self) | [src] |
impl<T: MulAssign + Copy> MulAssign<T> for Vec4<T>
[src]
impl<T: MulAssign + Copy> MulAssign<T> for Vec4<T>
fn mul_assign(&mut self, rhs: T) | [src] |
impl<T: DivAssign> DivAssign<Vec4<T>> for Vec4<T>
[src]
impl<T: DivAssign> DivAssign<Vec4<T>> for Vec4<T>
fn div_assign(&mut self, rhs: Self) | [src] |
impl<T: DivAssign + Copy> DivAssign<T> for Vec4<T>
[src]
impl<T: DivAssign + Copy> DivAssign<T> for Vec4<T>
fn div_assign(&mut self, rhs: T) | [src] |
impl<T: RemAssign> RemAssign<Vec4<T>> for Vec4<T>
[src]
impl<T: RemAssign> RemAssign<Vec4<T>> for Vec4<T>
fn rem_assign(&mut self, rhs: Self) | [src] |
impl<T: RemAssign + Copy> RemAssign<T> for Vec4<T>
[src]
impl<T: RemAssign + Copy> RemAssign<T> for Vec4<T>
fn rem_assign(&mut self, rhs: T) | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |