[−][src]Struct cgmath::Vector4
A 4-dimensional vector.
This type is marked as #[repr(C)]
.
Fields
x: S
The x component of the vector.
y: S
The y component of the vector.
z: S
The z component of the vector.
w: S
The w component of the vector.
Methods
impl<S> Vector4<S>
[src]
pub const fn new(x: S, y: S, z: S, w: S) -> Vector4<S>
[src]
Construct a new vector, using the provided values.
pub fn map<U, F>(self, f: F) -> Vector4<U> where
F: FnMut(S) -> U,
[src]
F: FnMut(S) -> U,
Perform the given operation on each field in the vector, returning a new point constructed from the operations.
impl<S: NumCast + Copy> Vector4<S>
[src]
impl<S: BaseNum> Vector4<S>
[src]
pub fn unit_x() -> Vector4<S>
[src]
A unit vector in the x
direction.
pub fn unit_y() -> Vector4<S>
[src]
A unit vector in the y
direction.
pub fn unit_z() -> Vector4<S>
[src]
A unit vector in the z
direction.
pub fn unit_w() -> Vector4<S>
[src]
A unit vector in the w
direction.
pub fn truncate(self) -> Vector3<S>
[src]
Create a Vector3
, dropping the w
value.
pub fn truncate_n(&self, n: isize) -> Vector3<S>
[src]
Create a Vector3
, dropping the nth element.
Trait Implementations
impl<S: Copy> Array for Vector4<S>
[src]
type Element = S
fn len() -> usize
[src]
fn from_value(scalar: S) -> Vector4<S>
[src]
fn sum(self) -> S where
S: Add<Output = S>,
[src]
S: Add<Output = S>,
fn product(self) -> S where
S: Mul<Output = S>,
[src]
S: Mul<Output = S>,
fn is_finite(&self) -> bool where
S: BaseFloat,
[src]
S: BaseFloat,
fn as_ptr(&self) -> *const Self::Element
[src]
fn as_mut_ptr(&mut self) -> *mut Self::Element
[src]
fn swap_elements(&mut self, i: usize, j: usize)
[src]
impl<S: BaseNum> ElementWise<Vector4<S>> for Vector4<S>
[src]
fn add_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn sub_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn mul_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn div_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn rem_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]
fn add_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn sub_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn mul_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn div_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
fn rem_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]
impl<S: BaseNum> ElementWise<S> for Vector4<S>
[src]
fn add_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn sub_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn mul_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn div_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn rem_element_wise(self, rhs: S) -> Vector4<S>
[src]
fn add_assign_element_wise(&mut self, rhs: S)
[src]
fn sub_assign_element_wise(&mut self, rhs: S)
[src]
fn mul_assign_element_wise(&mut self, rhs: S)
[src]
fn div_assign_element_wise(&mut self, rhs: S)
[src]
fn rem_assign_element_wise(&mut self, rhs: S)
[src]
impl<S: BaseNum> VectorSpace for Vector4<S>
[src]
impl<S: BaseFloat> MetricSpace for Vector4<S>
[src]
type Metric = S
The metric to be returned by the distance
function.
fn distance2(self, other: Self) -> S
[src]
fn distance(self, other: Self) -> Self::Metric
[src]
impl<S: BaseFloat> InnerSpace for Vector4<S>
[src]
fn dot(self, other: Vector4<S>) -> S
[src]
fn is_perpendicular(self, other: Self) -> bool
[src]
fn magnitude2(self) -> Self::Scalar
[src]
fn magnitude(self) -> Self::Scalar
[src]
fn angle(self, other: Self) -> Rad<Self::Scalar>
[src]
fn normalize(self) -> Self
[src]
fn normalize_to(self, magnitude: Self::Scalar) -> Self
[src]
fn project_on(self, other: Self) -> Self
[src]
impl<S> Into<[S; 4]> for Vector4<S>
[src]
impl<S> Into<(S, S, S, S)> for Vector4<S>
[src]
impl<S: Eq> Eq for Vector4<S>
[src]
impl<S> AsMut<[S; 4]> for Vector4<S>
[src]
impl<S> AsMut<(S, S, S, S)> for Vector4<S>
[src]
impl<S: Clone> Clone for Vector4<S>
[src]
impl<S> AsRef<[S; 4]> for Vector4<S>
[src]
impl<S> AsRef<(S, S, S, S)> for Vector4<S>
[src]
impl<S: PartialEq> PartialEq<Vector4<S>> for Vector4<S>
[src]
impl<S: Clone> From<[S; 4]> for Vector4<S>
[src]
impl<'a, S> From<&'a [S; 4]> for &'a Vector4<S>
[src]
impl<'a, S> From<&'a mut [S; 4]> for &'a mut Vector4<S>
[src]
impl<S> From<(S, S, S, S)> for Vector4<S>
[src]
impl<'a, S> From<&'a (S, S, S, S)> for &'a Vector4<S>
[src]
impl<'a, S> From<&'a mut (S, S, S, S)> for &'a mut Vector4<S>
[src]
impl<S: Copy> Copy for Vector4<S>
[src]
impl<S: Hash> Hash for Vector4<S>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<S: BaseNum> Add<Vector4<S>> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the +
operator.
fn add(self, other: Vector4<S>) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Add<&'a Vector4<S>> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Add<Vector4<S>> for &'a Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the +
operator.
fn add(self, other: Vector4<S>) -> Vector4<S>
[src]
impl<'a, 'b, S: BaseNum> Add<&'a Vector4<S>> for &'b Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the +
operator.
fn add(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
impl<S: BaseNum> Sub<Vector4<S>> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn sub(self, other: Vector4<S>) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Sub<&'a Vector4<S>> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Sub<Vector4<S>> for &'a Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn sub(self, other: Vector4<S>) -> Vector4<S>
[src]
impl<'a, 'b, S: BaseNum> Sub<&'a Vector4<S>> for &'b Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn sub(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
impl<S: BaseFloat> Mul<Vector4<S>> for Matrix4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<S>) -> Vector4<S>
[src]
impl<'a, S: BaseFloat> Mul<&'a Vector4<S>> for Matrix4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
impl<'a, S: BaseFloat> Mul<Vector4<S>> for &'a Matrix4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<S>) -> Vector4<S>
[src]
impl<'a, 'b, S: BaseFloat> Mul<&'a Vector4<S>> for &'b Matrix4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<S>) -> Vector4<S>
[src]
impl<S: BaseNum> Mul<S> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Mul<S> for &'a Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Vector4<S>
[src]
impl Mul<Vector4<usize>> for usize
[src]
type Output = Vector4<usize>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<usize>) -> Vector4<usize>
[src]
impl<'a> Mul<&'a Vector4<usize>> for usize
[src]
type Output = Vector4<usize>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<usize>) -> Vector4<usize>
[src]
impl Mul<Vector4<u8>> for u8
[src]
type Output = Vector4<u8>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<u8>) -> Vector4<u8>
[src]
impl<'a> Mul<&'a Vector4<u8>> for u8
[src]
type Output = Vector4<u8>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<u8>) -> Vector4<u8>
[src]
impl Mul<Vector4<u16>> for u16
[src]
type Output = Vector4<u16>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<u16>) -> Vector4<u16>
[src]
impl<'a> Mul<&'a Vector4<u16>> for u16
[src]
type Output = Vector4<u16>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<u16>) -> Vector4<u16>
[src]
impl Mul<Vector4<u32>> for u32
[src]
type Output = Vector4<u32>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<u32>) -> Vector4<u32>
[src]
impl<'a> Mul<&'a Vector4<u32>> for u32
[src]
type Output = Vector4<u32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<u32>) -> Vector4<u32>
[src]
impl Mul<Vector4<u64>> for u64
[src]
type Output = Vector4<u64>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<u64>) -> Vector4<u64>
[src]
impl<'a> Mul<&'a Vector4<u64>> for u64
[src]
type Output = Vector4<u64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<u64>) -> Vector4<u64>
[src]
impl Mul<Vector4<isize>> for isize
[src]
type Output = Vector4<isize>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<isize>) -> Vector4<isize>
[src]
impl<'a> Mul<&'a Vector4<isize>> for isize
[src]
type Output = Vector4<isize>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<isize>) -> Vector4<isize>
[src]
impl Mul<Vector4<i8>> for i8
[src]
type Output = Vector4<i8>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<i8>) -> Vector4<i8>
[src]
impl<'a> Mul<&'a Vector4<i8>> for i8
[src]
type Output = Vector4<i8>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<i8>) -> Vector4<i8>
[src]
impl Mul<Vector4<i16>> for i16
[src]
type Output = Vector4<i16>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<i16>) -> Vector4<i16>
[src]
impl<'a> Mul<&'a Vector4<i16>> for i16
[src]
type Output = Vector4<i16>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<i16>) -> Vector4<i16>
[src]
impl Mul<Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<i32>) -> Vector4<i32>
[src]
impl<'a> Mul<&'a Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<i32>) -> Vector4<i32>
[src]
impl Mul<Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<i64>) -> Vector4<i64>
[src]
impl<'a> Mul<&'a Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<i64>) -> Vector4<i64>
[src]
impl Mul<Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<f32>) -> Vector4<f32>
[src]
impl<'a> Mul<&'a Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<f32>) -> Vector4<f32>
[src]
impl Mul<Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the *
operator.
fn mul(self, other: Vector4<f64>) -> Vector4<f64>
[src]
impl<'a> Mul<&'a Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Vector4<f64>) -> Vector4<f64>
[src]
impl<S: BaseNum> Div<S> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the /
operator.
fn div(self, other: S) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Div<S> for &'a Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the /
operator.
fn div(self, other: S) -> Vector4<S>
[src]
impl Div<Vector4<usize>> for usize
[src]
type Output = Vector4<usize>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<usize>) -> Vector4<usize>
[src]
impl<'a> Div<&'a Vector4<usize>> for usize
[src]
type Output = Vector4<usize>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<usize>) -> Vector4<usize>
[src]
impl Div<Vector4<u8>> for u8
[src]
type Output = Vector4<u8>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<u8>) -> Vector4<u8>
[src]
impl<'a> Div<&'a Vector4<u8>> for u8
[src]
type Output = Vector4<u8>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<u8>) -> Vector4<u8>
[src]
impl Div<Vector4<u16>> for u16
[src]
type Output = Vector4<u16>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<u16>) -> Vector4<u16>
[src]
impl<'a> Div<&'a Vector4<u16>> for u16
[src]
type Output = Vector4<u16>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<u16>) -> Vector4<u16>
[src]
impl Div<Vector4<u32>> for u32
[src]
type Output = Vector4<u32>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<u32>) -> Vector4<u32>
[src]
impl<'a> Div<&'a Vector4<u32>> for u32
[src]
type Output = Vector4<u32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<u32>) -> Vector4<u32>
[src]
impl Div<Vector4<u64>> for u64
[src]
type Output = Vector4<u64>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<u64>) -> Vector4<u64>
[src]
impl<'a> Div<&'a Vector4<u64>> for u64
[src]
type Output = Vector4<u64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<u64>) -> Vector4<u64>
[src]
impl Div<Vector4<isize>> for isize
[src]
type Output = Vector4<isize>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<isize>) -> Vector4<isize>
[src]
impl<'a> Div<&'a Vector4<isize>> for isize
[src]
type Output = Vector4<isize>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<isize>) -> Vector4<isize>
[src]
impl Div<Vector4<i8>> for i8
[src]
type Output = Vector4<i8>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<i8>) -> Vector4<i8>
[src]
impl<'a> Div<&'a Vector4<i8>> for i8
[src]
type Output = Vector4<i8>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<i8>) -> Vector4<i8>
[src]
impl Div<Vector4<i16>> for i16
[src]
type Output = Vector4<i16>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<i16>) -> Vector4<i16>
[src]
impl<'a> Div<&'a Vector4<i16>> for i16
[src]
type Output = Vector4<i16>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<i16>) -> Vector4<i16>
[src]
impl Div<Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<i32>) -> Vector4<i32>
[src]
impl<'a> Div<&'a Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<i32>) -> Vector4<i32>
[src]
impl Div<Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<i64>) -> Vector4<i64>
[src]
impl<'a> Div<&'a Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<i64>) -> Vector4<i64>
[src]
impl Div<Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<f32>) -> Vector4<f32>
[src]
impl<'a> Div<&'a Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<f32>) -> Vector4<f32>
[src]
impl Div<Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the /
operator.
fn div(self, other: Vector4<f64>) -> Vector4<f64>
[src]
impl<'a> Div<&'a Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the /
operator.
fn div(self, other: &'a Vector4<f64>) -> Vector4<f64>
[src]
impl<S: BaseNum> Rem<S> for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the %
operator.
fn rem(self, other: S) -> Vector4<S>
[src]
impl<'a, S: BaseNum> Rem<S> for &'a Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the %
operator.
fn rem(self, other: S) -> Vector4<S>
[src]
impl Rem<Vector4<usize>> for usize
[src]
type Output = Vector4<usize>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<usize>) -> Vector4<usize>
[src]
impl<'a> Rem<&'a Vector4<usize>> for usize
[src]
type Output = Vector4<usize>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<usize>) -> Vector4<usize>
[src]
impl Rem<Vector4<u8>> for u8
[src]
type Output = Vector4<u8>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<u8>) -> Vector4<u8>
[src]
impl<'a> Rem<&'a Vector4<u8>> for u8
[src]
type Output = Vector4<u8>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<u8>) -> Vector4<u8>
[src]
impl Rem<Vector4<u16>> for u16
[src]
type Output = Vector4<u16>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<u16>) -> Vector4<u16>
[src]
impl<'a> Rem<&'a Vector4<u16>> for u16
[src]
type Output = Vector4<u16>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<u16>) -> Vector4<u16>
[src]
impl Rem<Vector4<u32>> for u32
[src]
type Output = Vector4<u32>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<u32>) -> Vector4<u32>
[src]
impl<'a> Rem<&'a Vector4<u32>> for u32
[src]
type Output = Vector4<u32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<u32>) -> Vector4<u32>
[src]
impl Rem<Vector4<u64>> for u64
[src]
type Output = Vector4<u64>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<u64>) -> Vector4<u64>
[src]
impl<'a> Rem<&'a Vector4<u64>> for u64
[src]
type Output = Vector4<u64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<u64>) -> Vector4<u64>
[src]
impl Rem<Vector4<isize>> for isize
[src]
type Output = Vector4<isize>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<isize>) -> Vector4<isize>
[src]
impl<'a> Rem<&'a Vector4<isize>> for isize
[src]
type Output = Vector4<isize>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<isize>) -> Vector4<isize>
[src]
impl Rem<Vector4<i8>> for i8
[src]
type Output = Vector4<i8>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<i8>) -> Vector4<i8>
[src]
impl<'a> Rem<&'a Vector4<i8>> for i8
[src]
type Output = Vector4<i8>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<i8>) -> Vector4<i8>
[src]
impl Rem<Vector4<i16>> for i16
[src]
type Output = Vector4<i16>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<i16>) -> Vector4<i16>
[src]
impl<'a> Rem<&'a Vector4<i16>> for i16
[src]
type Output = Vector4<i16>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<i16>) -> Vector4<i16>
[src]
impl Rem<Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<i32>) -> Vector4<i32>
[src]
impl<'a> Rem<&'a Vector4<i32>> for i32
[src]
type Output = Vector4<i32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<i32>) -> Vector4<i32>
[src]
impl Rem<Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<i64>) -> Vector4<i64>
[src]
impl<'a> Rem<&'a Vector4<i64>> for i64
[src]
type Output = Vector4<i64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<i64>) -> Vector4<i64>
[src]
impl Rem<Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<f32>) -> Vector4<f32>
[src]
impl<'a> Rem<&'a Vector4<f32>> for f32
[src]
type Output = Vector4<f32>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<f32>) -> Vector4<f32>
[src]
impl Rem<Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the %
operator.
fn rem(self, other: Vector4<f64>) -> Vector4<f64>
[src]
impl<'a> Rem<&'a Vector4<f64>> for f64
[src]
type Output = Vector4<f64>
The resulting type after applying the %
operator.
fn rem(self, other: &'a Vector4<f64>) -> Vector4<f64>
[src]
impl<S: Neg<Output = S>> Neg for Vector4<S>
[src]
type Output = Vector4<S>
The resulting type after applying the -
operator.
fn neg(self) -> Vector4<S>
[src]
impl<S: BaseNum + AddAssign<S>> AddAssign<Vector4<S>> for Vector4<S>
[src]
fn add_assign(&mut self, other: Vector4<S>)
[src]
impl<S: BaseNum + SubAssign<S>> SubAssign<Vector4<S>> for Vector4<S>
[src]
fn sub_assign(&mut self, other: Vector4<S>)
[src]
impl<S: BaseNum + MulAssign<S>> MulAssign<S> for Vector4<S>
[src]
fn mul_assign(&mut self, scalar: S)
[src]
impl<S: BaseNum + DivAssign<S>> DivAssign<S> for Vector4<S>
[src]
fn div_assign(&mut self, scalar: S)
[src]
impl<S: BaseNum + RemAssign<S>> RemAssign<S> for Vector4<S>
[src]
fn rem_assign(&mut self, scalar: S)
[src]
impl<S> Index<usize> for Vector4<S>
[src]
impl<S> Index<Range<usize>> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: Range<usize>) -> &'a [S]
[src]
impl<S> Index<RangeTo<usize>> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: RangeTo<usize>) -> &'a [S]
[src]
impl<S> Index<RangeFrom<usize>> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: RangeFrom<usize>) -> &'a [S]
[src]
impl<S> Index<RangeFull> for Vector4<S>
[src]
type Output = [S]
The returned type after indexing.
fn index<'a>(&'a self, i: RangeFull) -> &'a [S]
[src]
impl<S> IndexMut<usize> for Vector4<S>
[src]
impl<S> IndexMut<Range<usize>> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: Range<usize>) -> &'a mut [S]
[src]
impl<S> IndexMut<RangeTo<usize>> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]
[src]
impl<S> IndexMut<RangeFrom<usize>> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]
[src]
impl<S> IndexMut<RangeFull> for Vector4<S>
[src]
fn index_mut<'a>(&'a mut self, i: RangeFull) -> &'a mut [S]
[src]
impl<S: Debug> Debug for Vector4<S>
[src]
impl<S: BaseNum> Sum<Vector4<S>> for Vector4<S>
[src]
impl<'a, S: 'a + BaseNum> Sum<&'a Vector4<S>> for Vector4<S>
[src]
impl<S: BaseFloat> AbsDiffEq<Vector4<S>> for Vector4<S>
[src]
type Epsilon = S::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> S::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: S::Epsilon) -> bool
[src]
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
impl<S: BaseFloat> RelativeEq<Vector4<S>> for Vector4<S>
[src]
fn default_max_relative() -> S::Epsilon
[src]
fn relative_eq(
&self,
other: &Self,
epsilon: S::Epsilon,
max_relative: S::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: S::Epsilon,
max_relative: S::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<S: BaseFloat> UlpsEq<Vector4<S>> for Vector4<S>
[src]
fn default_max_ulps() -> u32
[src]
fn ulps_eq(&self, other: &Self, epsilon: S::Epsilon, max_ulps: u32) -> bool
[src]
fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
impl<S: Bounded> Bounded for Vector4<S>
[src]
impl<S: BaseNum> Zero for Vector4<S>
[src]
impl<S> Distribution<Vector4<S>> for Standard where
Standard: Distribution<S>,
S: BaseFloat,
[src]
Standard: Distribution<S>,
S: BaseFloat,
Auto Trait Implementations
impl<S> Send for Vector4<S> where
S: Send,
S: Send,
impl<S> Unpin for Vector4<S> where
S: Unpin,
S: Unpin,
impl<S> Sync for Vector4<S> where
S: Sync,
S: Sync,
impl<S> UnwindSafe for Vector4<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Vector4<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,