Struct glamour::Vector3

source ·
#[repr(C)]
pub struct Vector3<U: Unit = f32> { pub x: U::Scalar, pub y: U::Scalar, pub z: U::Scalar, }
Expand description

3D vector.

Alignment: Same as the scalar (so not 16 bytes). If you really need 16-byte alignment, use Vector4.

Fields§

§x: U::Scalar

X coordinate

§y: U::Scalar

Y coordinate

§z: U::Scalar

Z coordinate

Implementations§

source§

impl<T: Unit> Vector3<T>

source

pub const fn new(x: T::Scalar, y: T::Scalar, z: T::Scalar) -> Self

New vector.

source

pub fn from_point(point: Point3<T>) -> Self

Instantiate from point.

source

pub fn to_point(self) -> Point3<T>

Convert to point.

source

pub fn as_point(&self) -> &Point3<T>

Reinterpret as point.

source

pub fn as_point_mut(&mut self) -> &mut Point3<T>

Reinterpret as point.

source

pub fn from_size(size: Size3<T>) -> Self

Instantiate from size.

source

pub fn to_size(self) -> Size3<T>

Convert to size.

source

pub fn as_size(&self) -> &Size3<T>

Reinterpret as size.

source

pub fn as_size_mut(&mut self) -> &mut Size3<T>

Reinterpret as size.

source§

impl<T: Unit> Vector3<T>

source

pub fn splat(scalar: T::Scalar) -> Self

Set all elements to scalar.

source

pub fn clamp(self, min: Self, max: Self) -> Self

Clamp all elements within min and max.

source

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

Return by-element minimum.

source

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

Return by-element maximum.

source

pub fn min_element(self) -> T::Scalar

Min element.

source

pub fn max_element(self) -> T::Scalar

Max element.

source

pub fn write_to_slice(self, slice: &mut [T::Scalar])

Write this vector type to a slice.

source

pub fn with_x(self, x: T::Scalar) -> Self

Replace x component.

source

pub fn with_y(self, x: T::Scalar) -> Self

Replace y component.

source

pub fn element_sum(self) -> T::Scalar

Sum of all elements.

source

pub fn element_product(self) -> T::Scalar

Product of all elements.

source

pub fn as_array(&self) -> &[T::Scalar; 3]

Reinterpret as array.

source

pub fn as_array_mut(&mut self) -> &mut [T::Scalar; 3]

Reinterpret as mutable array.

source

pub fn get(&self, index: usize) -> T::Scalar

Get component at index.

source

pub fn set(&mut self, index: usize, value: T::Scalar)

Set component at index.

source

pub fn const_get<const N: usize>(&self) -> T::Scalar

Get component at index N.

source

pub fn const_set<const N: usize>(&mut self, value: T::Scalar)

Set component at index N.

source

pub fn map<F: Fn(T::Scalar) -> T::Scalar>(self, f: F) -> Self

Returns a vector containing each element of self modified by a mapping function f.

source

pub fn from_untyped(untyped: Vector3<T::Scalar>) -> Vector3<T>

Bitcast an untyped instance to self.

source

pub fn to_untyped(self) -> Vector3<T::Scalar>

Bitcast self to an untyped instance.

source

pub fn as_untyped(&self) -> &Vector3<T::Scalar>

Reinterpret cast self as the untyped variant.

source

pub fn as_untyped_mut(&mut self) -> &mut Vector3<T::Scalar>

Reinterpret cast self as the untyped variant.

source

pub fn cast<T2>(self) -> Vector3<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

source

pub fn cast_ref<T2>(&self) -> &Vector3<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

source

pub fn cast_mut<T2>(&mut self) -> &mut Vector3<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

source

pub fn as_<T2>(self) -> Vector3<T2>
where T: Unit<Scalar: AsPrimitive<T2::Scalar>>, T2: Unit,

Cast to a different coordinate space with scalar type conversion through the as operator (potentially narrowing or losing precision).

source

pub fn try_cast<T2>(self) -> Option<Vector3<T2>>
where T2: Unit,

Cast to a different coordinate space with scalar type conversion. Returns None if any component could not be converted to the target scalar type.

source

pub fn to_tuple(self) -> (T::Scalar, T::Scalar, T::Scalar)

Convert this vector or point to a tuple.

source

pub fn from_tuple((x, y, z): (T::Scalar, T::Scalar, T::Scalar)) -> Self

Create from tuple.

source§

impl<T: FloatUnit> Vector3<T>

source

pub fn ceil(self) -> Self

Round all components up.

source

pub fn exp(self) -> Self

e^self by component

source

pub fn floor(self) -> Self

Round all components down.

source

pub fn fract(self) -> Self

source

pub fn fract_gl(self) -> Self

source

pub fn is_finite(self) -> bool

True if all components are non-infinity and non-NaN.

source

pub fn is_nan(self) -> bool

True if any component is NaN.

source

pub fn lerp(self, rhs: Self, s: T::Scalar) -> Self

Linear interpolation.

source

pub fn powf(self, n: T::Scalar) -> Self

self^n by component

source

pub fn recip(self) -> Self

1.0/self by component

source

pub fn round(self) -> Self

Round all components.

source

pub fn copysign(self, rhs: Self) -> Self

Returns a vector with signs of rhs and the magnitudes of self.

source§

impl<T: SignedUnit> Vector3<T>

source

pub fn signum(self) -> Self

Returns a vector with elements representing the sign of self.

source

pub fn abs(self) -> Self

Returns a vector containing the absolute value of each element of self.

source

pub fn rem_euclid(self, rhs: Self) -> Self

Returns the element-wise remainder of Euclidean division of self`` by rhs`.

§Panics

This function will panic if any rhs element is 0 or the division results in overflow.

source§

impl<T: IntUnit> Vector3<T>

source

pub fn saturating_add(self, rhs: Self) -> Self

Returns a vector containing the saturating addition of self and rhs.

source

pub fn saturating_sub(self, rhs: Self) -> Self

Returns a vector containing the saturating subtraction of self and rhs.

source

pub fn saturating_mul(self, rhs: Self) -> Self

Returns a vector containing the saturating multiplication of self and rhs.

source

pub fn saturating_div(self, rhs: Self) -> Self

Returns a vector containing the saturating division of self and rhs.

source

pub fn wrapping_add(self, rhs: Self) -> Self

Returns a vector containing the wrapping addition of self and rhs.

source

pub fn wrapping_sub(self, rhs: Self) -> Self

Returns a vector containing the wrapping subtraction of self and rhs.

source

pub fn wrapping_mul(self, rhs: Self) -> Self

Returns a vector containing the wrapping multiplication of self and rhs.

source

pub fn wrapping_div(self, rhs: Self) -> Self

Returns a vector containing the wrapping division of self and rhs.

source§

impl<T: Unit> Vector3<T>

source

pub fn swizzle<const X: usize, const Y: usize, const Z: usize>( &self, ) -> Vector3<T>

Select components of this vector and return a new vector containing those components.

source§

impl<T: Unit> Vector3<T>

source

pub const ZERO: Self = _

All zeroes.

source

pub const ONE: Self = _

All ones.

source

pub const X: Self = _

Unit vector in the direction of the X axis.

source

pub const Y: Self = _

Unit vector in the direction of the Y axis.

source

pub const Z: Self = _

Unit vector in the direction of the Z axis.

source

pub const AXES: [Self; 3] = _

The unit axes.

source

pub fn as_raw(&self) -> &<T::Scalar as Scalar>::Vec3

Transparently cast this type to its underlying, bitwise compatible glam type.

source

pub fn to_raw(self) -> <T::Scalar as Scalar>::Vec3

Transparently cast this type to its underlying, bitwise compatible glam type.

source

pub fn from_raw(vec: <T::Scalar as Scalar>::Vec3) -> Self

Convert a raw glam vector to this type. This is a zero-overhead cast.

source§

impl<T: SignedUnit> Vector3<T>

source

pub const NEG_ONE: Self = _

All negative one.

source

pub const NEG_X: Self = _

(-1, 0, 0)

source

pub const NEG_Y: Self = _

(0, -1, 0)

source

pub const NEG_Z: Self = _

(0, 0, -1)

source§

impl<T: FloatUnit> Vector3<T>

source

pub const NAN: Self = _

All NaN.

source

pub const INFINITY: Self = _

All positive infinity.

source

pub const NEG_INFINITY: Self = _

All negative infinity.

source

pub fn is_nan_mask(self) -> BVec3

Return a mask where each bit is set if the corresponding component is NaN.

source

pub fn is_finite_mask(self) -> BVec3

Performs is_finite on each element of self, returning a vector mask of the results.

source§

impl<T: Unit> Vector3<T>

source

pub fn from_array(array: [T::Scalar; 3]) -> Self

Creates a new vector from an array.

source

pub fn to_array(&self) -> [T::Scalar; 3]

[x, y, z]

source

pub fn extend(self, w: T::Scalar) -> Vector4<T>

Creates a 3D vector from self and the given w value.

source

pub fn truncate(self) -> Vector2<T>

Creates a 2D vector by removing the z component.

source

pub fn cmpeq(self, rhs: Self) -> BVec3

Returns a vector mask containing the result of a == comparison for each element of self and rhs.

source

pub fn cmpne(self, rhs: Self) -> BVec3

Returns a vector mask containing the result of a != comparison for each element of self and rhs.

source

pub fn cmpge(self, rhs: Self) -> BVec3

Returns a vector mask containing the result of a >= comparison for each element of self and rhs.

source

pub fn cmpgt(self, rhs: Self) -> BVec3

Returns a vector mask containing the result of a > comparison for each element of self and rhs.

source

pub fn cmple(self, rhs: Self) -> BVec3

Returns a vector mask containing the result of a <= comparison for each element of self and rhs.

source

pub fn cmplt(self, rhs: Self) -> BVec3

Returns a vector mask containing the result of a < comparison for each element of self and rhs.

source

pub fn select(mask: BVec3, if_true: Self, if_false: Self) -> Self

Creates a vector from the elements in if_true and if_false, selecting which to use for each element of self.

A true element in the mask uses the corresponding element from if_true, and false uses the element from if_false.

source

pub fn with_z(self, z: T::Scalar) -> Self

Replace the z component.

source

pub fn cross(self, other: Self) -> Self

Cross product.

source§

impl<T: FloatUnit> Vector3<T>

source§

impl<T: Unit> Vector3<T>

source

pub fn dot(self, other: Self) -> T::Scalar

Dot product.

source

pub fn dot_into_vec(self, other: Self) -> Self

Returns a vector where every component is the dot product of self and rhs.

source§

impl<T: SignedUnit> Vector3<T>

source

pub fn div_euclid(self, rhs: Self) -> Self

Returns the element-wise quotient of Euclidean division of self`` by rhs`.

§Panics

This function will panic if any rhs element is 0 or the division results in overflow.

source§

impl<T: FloatUnit> Vector3<T>

source

pub fn clamp_length_max(self, min: T::Scalar) -> Self

Clamp length

source

pub fn clamp_length_min(self, min: T::Scalar) -> Self

Clamp length

source

pub fn clamp_length(self, min: T::Scalar, max: T::Scalar) -> Self

Clamp length

source

pub fn length(self) -> T::Scalar

Length of the vector

source

pub fn length_squared(self) -> T::Scalar

Squared length of the vector

source

pub fn length_recip(self) -> T::Scalar

Reciprocal length of the vector

source

pub fn mul_add(self, a: Self, b: Self) -> Self

self * a + b

source

pub fn normalize_or_zero(self) -> Self

Normalize the vector, returning zero if the length was already (very close to) zero.

source

pub fn normalize(self) -> Self

Normalize the vector. Undefined results in the vector’s length is (very close to) zero.

source

pub fn normalize_or(self, fallback: Self) -> Self

Returns self normalized to length 1.0 if possible, else returns a fallback value.

source

pub fn try_normalize(self) -> Option<Self>

Normalize the vector, returning None if the length was already (very close to) zero.

source

pub fn is_normalized(self) -> bool

True if the vector is normalized.

source

pub fn project_onto_normalized(self, other: Self) -> Self

source

pub fn project_onto(self, other: Self) -> Self

source

pub fn reject_from_normalized(self, other: Self) -> Self

source

pub fn reject_from(self, other: Self) -> Self

source

pub fn reflect(self, normal: Self) -> Self

Returns the reflection vector for a given incident vector self and surface normal normal.

normal must be normalized.

source

pub fn refract(self, normal: Self, eta: T::Scalar) -> Self

Returns the refraction direction for a given incident vector self, surface normal normal and ratio of indices of refraction, eta. When total internal reflection occurs, a zero vector will be returned.

self and normal must be normalized.

source§

impl<T: Unit<Scalar = f32>> Vector3<T>

source

pub fn from_vec3a(vec: Vec3A) -> Self

Create from SIMD-aligned glam::Vec3A.

See the design limitations for why this is needed.

source

pub fn to_vec3a(self) -> Vec3A

Convert to SIMD-aligned glam::Vec3A.

See the design limitations for why this is needed.

Trait Implementations§

source§

impl<T: FloatUnit> AbsDiffEq for Vector3<T>

source§

type Epsilon = <<T as Unit>::Scalar as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
source§

fn default_epsilon() -> Self::Epsilon

The default tolerance to use when testing values that are close together. Read more
source§

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
source§

fn abs_diff_ne(&self, other: &Self, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
source§

impl<T: Unit> Add<&Vector3<T>> for &Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Vector3<T>) -> Point3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<&Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<&Vector3<T>> for Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Vector3<T>) -> Point3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<&Vector3<T>> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<&f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<&f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<&f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<&f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<&i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<&i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<&i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<&i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<&i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<&i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<&u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<&u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<&u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<&u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<&u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<&u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<Vector3<T>> for &Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Vector3<T>) -> Point3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Vector3<T>) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<Vector3<T>> for Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Vector3<T>) -> Point3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Vector3<T>) -> Vector3<T>

Performs the + operation. Read more
source§

impl<T: Unit> AddAssign<&Vector3<T>> for Point3<T>

source§

fn add_assign(&mut self, rhs: &Vector3<T>)

Performs the += operation. Read more
source§

impl<T: Unit> AddAssign<&Vector3<T>> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &Vector3<T>)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f32>> AddAssign<&f32> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &f32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f64>> AddAssign<&f64> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &f64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i16>> AddAssign<&i16> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &i16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i32>> AddAssign<&i32> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &i32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i64>> AddAssign<&i64> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &i64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u16>> AddAssign<&u16> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &u16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u32>> AddAssign<&u32> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u64>> AddAssign<&u64> for Vector3<T>

source§

fn add_assign(&mut self, rhs: &u64)

Performs the += operation. Read more
source§

impl<T: Unit> AddAssign<Vector3<T>> for Point3<T>

source§

fn add_assign(&mut self, rhs: Vector3<T>)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f32>> AddAssign<f32> for Vector3<T>

source§

fn add_assign(&mut self, rhs: f32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f64>> AddAssign<f64> for Vector3<T>

source§

fn add_assign(&mut self, rhs: f64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i16>> AddAssign<i16> for Vector3<T>

source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i32>> AddAssign<i32> for Vector3<T>

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i64>> AddAssign<i64> for Vector3<T>

source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u16>> AddAssign<u16> for Vector3<T>

source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u32>> AddAssign<u32> for Vector3<T>

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u64>> AddAssign<u64> for Vector3<T>

source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
source§

impl<T: Unit> AddAssign for Vector3<T>

source§

fn add_assign(&mut self, rhs: Vector3<T>)

Performs the += operation. Read more
source§

impl<T: Unit> AsMut<[<T as Unit>::Scalar; 3]> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut [T::Scalar; 3]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f64>> AsMut<DVec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut DVec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i16>> AsMut<I16Vec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut I16Vec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i64>> AsMut<I64Vec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut I64Vec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i32>> AsMut<IVec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut IVec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u16>> AsMut<U16Vec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut U16Vec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u64>> AsMut<U64Vec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut U64Vec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u32>> AsMut<UVec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut UVec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f32>> AsMut<Vec3> for Vector3<T>

source§

fn as_mut(&mut self) -> &mut Vec3

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit> AsRef<[<T as Unit>::Scalar; 3]> for Vector3<T>

source§

fn as_ref(&self) -> &[T::Scalar; 3]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f64>> AsRef<DVec3> for Vector3<T>

source§

fn as_ref(&self) -> &DVec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i16>> AsRef<I16Vec3> for Vector3<T>

source§

fn as_ref(&self) -> &I16Vec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i64>> AsRef<I64Vec3> for Vector3<T>

source§

fn as_ref(&self) -> &I64Vec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i32>> AsRef<IVec3> for Vector3<T>

source§

fn as_ref(&self) -> &IVec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u16>> AsRef<U16Vec3> for Vector3<T>

source§

fn as_ref(&self) -> &U16Vec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u64>> AsRef<U64Vec3> for Vector3<T>

source§

fn as_ref(&self) -> &U64Vec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u32>> AsRef<UVec3> for Vector3<T>

source§

fn as_ref(&self) -> &UVec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f32>> AsRef<Vec3> for Vector3<T>

source§

fn as_ref(&self) -> &Vec3

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f64>> Borrow<DVec3> for Vector3<T>

source§

fn borrow(&self) -> &DVec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i16>> Borrow<I16Vec3> for Vector3<T>

source§

fn borrow(&self) -> &I16Vec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i64>> Borrow<I64Vec3> for Vector3<T>

source§

fn borrow(&self) -> &I64Vec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i32>> Borrow<IVec3> for Vector3<T>

source§

fn borrow(&self) -> &IVec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u16>> Borrow<U16Vec3> for Vector3<T>

source§

fn borrow(&self) -> &U16Vec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u64>> Borrow<U64Vec3> for Vector3<T>

source§

fn borrow(&self) -> &U64Vec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u32>> Borrow<UVec3> for Vector3<T>

source§

fn borrow(&self) -> &UVec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = f32>> Borrow<Vec3> for Vector3<T>

source§

fn borrow(&self) -> &Vec3

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = f64>> BorrowMut<DVec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut DVec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i16>> BorrowMut<I16Vec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut I16Vec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i64>> BorrowMut<I64Vec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut I64Vec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i32>> BorrowMut<IVec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut IVec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u16>> BorrowMut<U16Vec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut U16Vec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u64>> BorrowMut<U64Vec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut U64Vec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u32>> BorrowMut<UVec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut UVec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = f32>> BorrowMut<Vec3> for Vector3<T>

source§

fn borrow_mut(&mut self) -> &mut Vec3

Mutably borrows from an owned value. Read more
source§

impl<T: Unit> Clone for Vector3<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Unit> Debug for Vector3<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Unit> Default for Vector3<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: Unit> Div<&Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit> Div<&Vector3<T>> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<&f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<&f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<&f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<&f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<&i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<&i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<&i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<&i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<&i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<&i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<&u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<&u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<&u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<&u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<&u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<&u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit> Div<Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Vector3<T>) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit> Div for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Vector3<T>) -> Vector3<T>

Performs the / operation. Read more
source§

impl<T: Unit> DivAssign<&Vector3<T>> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &Vector3<T>)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f32>> DivAssign<&f32> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &f32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f64>> DivAssign<&f64> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &f64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i16>> DivAssign<&i16> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &i16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i32>> DivAssign<&i32> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &i32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i64>> DivAssign<&i64> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &i64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u16>> DivAssign<&u16> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &u16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u32>> DivAssign<&u32> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &u32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u64>> DivAssign<&u64> for Vector3<T>

source§

fn div_assign(&mut self, rhs: &u64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f32>> DivAssign<f32> for Vector3<T>

source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f64>> DivAssign<f64> for Vector3<T>

source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i16>> DivAssign<i16> for Vector3<T>

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i32>> DivAssign<i32> for Vector3<T>

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i64>> DivAssign<i64> for Vector3<T>

source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u16>> DivAssign<u16> for Vector3<T>

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u32>> DivAssign<u32> for Vector3<T>

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u64>> DivAssign<u64> for Vector3<T>

source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
source§

impl<T: Unit> DivAssign for Vector3<T>

source§

fn div_assign(&mut self, rhs: Vector3<T>)

Performs the /= operation. Read more
source§

impl<T: Unit> From<[<T as Unit>::Scalar; 3]> for Vector3<T>

source§

fn from(value: [T::Scalar; 3]) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<(<T as Unit>::Scalar, <T as Unit>::Scalar, <T as Unit>::Scalar)> for Vector3<T>

source§

fn from((x, y, z): (T::Scalar, T::Scalar, T::Scalar)) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<BVec3> for Vector3<T>

source§

fn from(v: BVec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f64>> From<DVec3> for Vector3<T>

source§

fn from(value: DVec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i16>> From<I16Vec3> for Vector3<T>

source§

fn from(value: I16Vec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i64>> From<I64Vec3> for Vector3<T>

source§

fn from(value: I64Vec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i32>> From<IVec3> for Vector3<T>

source§

fn from(value: IVec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<Point3<T>> for Vector3<T>

source§

fn from(point: Point3<T>) -> Vector3<T>

Converts to this type from the input type.
source§

impl<T: Unit> From<Size3<T>> for Vector3<T>

source§

fn from(point: Size3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u16>> From<U16Vec3> for Vector3<T>

source§

fn from(value: U16Vec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u64>> From<U64Vec3> for Vector3<T>

source§

fn from(value: U64Vec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u32>> From<UVec3> for Vector3<T>

source§

fn from(value: UVec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f32>> From<Vec3> for Vector3<T>

source§

fn from(value: Vec3) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f32>> From<Vec3A> for Vector3<T>

source§

fn from(value: Vec3A) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<Vector3<T>> for [T::Scalar; 3]

source§

fn from(value: Vector3<T>) -> [T::Scalar; 3]

Converts to this type from the input type.
source§

impl<T: Unit> From<Vector3<T>> for (T::Scalar, T::Scalar, T::Scalar)

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f64>> From<Vector3<T>> for DVec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i16>> From<Vector3<T>> for I16Vec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i64>> From<Vector3<T>> for I64Vec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i32>> From<Vector3<T>> for IVec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<Vector3<T>> for Point3<T>

source§

fn from(vec: Vector3<T>) -> Point3<T>

Converts to this type from the input type.
source§

impl<T: Unit> From<Vector3<T>> for Size3<T>

source§

fn from(vec: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u16>> From<Vector3<T>> for U16Vec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u64>> From<Vector3<T>> for U64Vec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u32>> From<Vector3<T>> for UVec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f32>> From<Vector3<T>> for Vec3

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f32>> From<Vector3<T>> for Vec3A

source§

fn from(value: Vector3<T>) -> Self

Converts to this type from the input type.
source§

impl<T: IntUnit> Hash for Vector3<T>

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T: Unit> Index<usize> for Vector3<T>

source§

type Output = <T as Unit>::Scalar

The returned type after indexing.
source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T: Unit> IndexMut<usize> for Vector3<T>

source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T: Unit> IntoIterator for Vector3<T>

source§

type Item = <T as Unit>::Scalar

The type of the elements being iterated over.
source§

type IntoIter = <[<T as Unit>::Scalar; 3] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T: Unit> Mul<&Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit> Mul<&Vector3<T>> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<&f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<&f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<&f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<&f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<&i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<&i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<&i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<&i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<&i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<&i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<&u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<&u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<&u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<&u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<&u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<&u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit> Mul<Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Vector3<T>) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T> Mul<Vector3<T>> for DQuat
where T: Unit<Scalar = f64>,

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Vector3<T>) -> Self::Output

Performs the * operation. Read more
source§

impl<T> Mul<Vector3<T>> for Matrix3<T::Scalar>
where T: FloatUnit,

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Vector3<T>) -> Self::Output

Performs the * operation. Read more
source§

impl<T> Mul<Vector3<T>> for Quat
where T: Unit<Scalar = f32>,

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Vector3<T>) -> Self::Output

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit> Mul for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Vector3<T>) -> Vector3<T>

Performs the * operation. Read more
source§

impl<T: Unit> MulAssign<&Vector3<T>> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &Vector3<T>)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f32>> MulAssign<&f32> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &f32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f64>> MulAssign<&f64> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &f64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i16>> MulAssign<&i16> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &i16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i32>> MulAssign<&i32> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &i32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i64>> MulAssign<&i64> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &i64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u16>> MulAssign<&u16> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u32>> MulAssign<&u32> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u64>> MulAssign<&u64> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: &u64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f32>> MulAssign<f32> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f64>> MulAssign<f64> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i16>> MulAssign<i16> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i32>> MulAssign<i32> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i64>> MulAssign<i64> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u16>> MulAssign<u16> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u32>> MulAssign<u32> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u64>> MulAssign<u64> for Vector3<T>

source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
source§

impl<T: Unit> MulAssign for Vector3<T>

source§

fn mul_assign(&mut self, rhs: Vector3<T>)

Performs the *= operation. Read more
source§

impl<T: SignedUnit> Neg for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl<T: Unit> PartialEq for Vector3<T>

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a, T: Unit> Product<&'a Vector3<T>> for Vector3<T>

source§

fn product<I>(iter: I) -> Self
where I: Iterator<Item = &'a Self>,

Takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<T: FloatUnit> RelativeEq for Vector3<T>

source§

fn default_max_relative() -> Self::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
source§

fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
source§

fn relative_ne( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of RelativeEq::relative_eq.
source§

impl<T: Unit> Rem<&Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit> Rem<&Vector3<T>> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<&f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<&f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<&f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<&f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<&i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<&i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<&i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<&i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<&i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<&i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<&u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<&u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<&u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<&u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<&u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<&u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit> Rem<Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Vector3<T>) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit> Rem for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Vector3<T>) -> Vector3<T>

Performs the % operation. Read more
source§

impl<T: Unit> RemAssign<&Vector3<T>> for Point3<T>

source§

fn rem_assign(&mut self, rhs: &Vector3<T>)

Performs the %= operation. Read more
source§

impl<T: Unit> RemAssign<&Vector3<T>> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &Vector3<T>)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f32>> RemAssign<&f32> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &f32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f64>> RemAssign<&f64> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &f64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i16>> RemAssign<&i16> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &i16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i32>> RemAssign<&i32> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &i32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i64>> RemAssign<&i64> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &i64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u16>> RemAssign<&u16> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &u16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u32>> RemAssign<&u32> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &u32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u64>> RemAssign<&u64> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: &u64)

Performs the %= operation. Read more
source§

impl<T: Unit> RemAssign<Vector3<T>> for Point3<T>

source§

fn rem_assign(&mut self, rhs: Vector3<T>)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f32>> RemAssign<f32> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: f32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f64>> RemAssign<f64> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: f64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i16>> RemAssign<i16> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i32>> RemAssign<i32> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i64>> RemAssign<i64> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: i64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u16>> RemAssign<u16> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: u16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u32>> RemAssign<u32> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: u32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u64>> RemAssign<u64> for Vector3<T>

source§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
source§

impl<T: Unit> RemAssign for Vector3<T>

source§

fn rem_assign(&mut self, rhs: Vector3<T>)

Performs the %= operation. Read more
source§

impl<T: Unit> Sub<&Vector3<T>> for &Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Vector3<T>) -> Point3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<&Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<&Vector3<T>> for Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Vector3<T>) -> Point3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<&Vector3<T>> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Vector3<T>) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<&f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<&f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<&f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<&f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<&i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<&i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<&i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<&i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<&i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<&i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<&u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<&u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<&u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<&u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<&u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<&u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<Vector3<T>> for &Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Vector3<T>) -> Point3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<Vector3<T>> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Vector3<T>) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<Vector3<T>> for Point3<T>

source§

type Output = Point3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Vector3<T>) -> Point3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<f32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<f32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<f64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<f64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<i16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<i16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<i32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<i32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<i64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<i64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<u16> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<u16> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<u32> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<u32> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<u64> for &Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<u64> for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub for Vector3<T>

source§

type Output = Vector3<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Vector3<T>) -> Vector3<T>

Performs the - operation. Read more
source§

impl<T: Unit> SubAssign<&Vector3<T>> for Point3<T>

source§

fn sub_assign(&mut self, rhs: &Vector3<T>)

Performs the -= operation. Read more
source§

impl<T: Unit> SubAssign<&Vector3<T>> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &Vector3<T>)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f32>> SubAssign<&f32> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &f32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f64>> SubAssign<&f64> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &f64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i16>> SubAssign<&i16> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &i16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i32>> SubAssign<&i32> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &i32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i64>> SubAssign<&i64> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &i64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u16>> SubAssign<&u16> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &u16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u32>> SubAssign<&u32> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u64>> SubAssign<&u64> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: &u64)

Performs the -= operation. Read more
source§

impl<T: Unit> SubAssign<Vector3<T>> for Point3<T>

source§

fn sub_assign(&mut self, rhs: Vector3<T>)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f32>> SubAssign<f32> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: f32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f64>> SubAssign<f64> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: f64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i16>> SubAssign<i16> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i32>> SubAssign<i32> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i64>> SubAssign<i64> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u16>> SubAssign<u16> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u32>> SubAssign<u32> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u64>> SubAssign<u64> for Vector3<T>

source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
source§

impl<T: Unit> SubAssign for Vector3<T>

source§

fn sub_assign(&mut self, rhs: Vector3<T>)

Performs the -= operation. Read more
source§

impl<'a, T: Unit> Sum<&'a Vector3<T>> for Vector3<T>

source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = &'a Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<T: Unit> Swizzle<T> for Vector3<T>

source§

fn swizzle2<const X: usize, const Y: usize>(&self) -> Vector2<T>

Select two components from this vector and return a 2D vector made from those components.
source§

fn swizzle3<const X: usize, const Y: usize, const Z: usize>(&self) -> Vector3<T>

Select three components from this vector and return a 3D vector made from those components.
source§

fn swizzle4<const X: usize, const Y: usize, const Z: usize, const W: usize>( &self, ) -> Vector4<T>

Select four components from this vector and return a 4D vector made from those components.
source§

impl<Src, Dst> TransformMap<Vector3<Src>> for Transform3<Src, Dst>
where Src: Unit, Src::Scalar: FloatScalar, Dst: Unit<Scalar = Src::Scalar>,

source§

type Output = Vector3<Dst>

Result type of the transformation.
source§

fn map(&self, value: Vector3<Src>) -> Self::Output

Map T to Self::Output.
source§

impl<T: Unit> Transparent for Vector3<T>

SAFETY: These are guaranteed to have the same representation.

source§

type Wrapped = <<T as Unit>::Scalar as Scalar>::Vec3

The inner type that shares a compatible representation with Self.
source§

fn wrap(x: Self::Wrapped) -> Self

Wrap the inner type by copy. Read more
source§

fn peel(x: Self) -> Self::Wrapped

Unwrap the inner type by copy. Read more
source§

fn peel_ref(x: &Self) -> &Self::Wrapped

Convert a reference to the inner type. Read more
source§

fn peel_mut(x: &mut Self) -> &mut Self::Wrapped

Convert a mutable reference to the inner type. Read more
source§

impl<T: FloatUnit> UlpsEq for Vector3<T>

source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
source§

fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
source§

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of UlpsEq::ulps_eq.
source§

impl<T: Unit> Vec3Swizzles for Vector3<T>

source§

type Vec2 = Vector2<T>

source§

type Vec4 = Vector4<T>

source§

fn xx(self) -> Vector2<T>

source§

fn xy(self) -> Vector2<T>

source§

fn yy(self) -> Vector2<T>

source§

fn yx(self) -> Vector2<T>

source§

fn xxx(self) -> Vector3<T>

source§

fn xxy(self) -> Vector3<T>

source§

fn xyx(self) -> Vector3<T>

source§

fn xyy(self) -> Vector3<T>

source§

fn yxx(self) -> Vector3<T>

source§

fn yxy(self) -> Vector3<T>

source§

fn yyx(self) -> Vector3<T>

source§

fn yyy(self) -> Vector3<T>

source§

fn xxxx(self) -> Vector4<T>

source§

fn xxxy(self) -> Vector4<T>

source§

fn xxyx(self) -> Vector4<T>

source§

fn xxyy(self) -> Vector4<T>

source§

fn xyxx(self) -> Vector4<T>

source§

fn xyxy(self) -> Vector4<T>

source§

fn xyyx(self) -> Vector4<T>

source§

fn xyyy(self) -> Vector4<T>

source§

fn yxxx(self) -> Vector4<T>

source§

fn yxxy(self) -> Vector4<T>

source§

fn yxyx(self) -> Vector4<T>

source§

fn yxyy(self) -> Vector4<T>

source§

fn yyxx(self) -> Vector4<T>

source§

fn yyxy(self) -> Vector4<T>

source§

fn yyyx(self) -> Vector4<T>

source§

fn yyyy(self) -> Vector4<T>

source§

fn xz(self) -> Vector2<T>

source§

fn yz(self) -> Vector2<T>

source§

fn zx(self) -> Vector2<T>

source§

fn zy(self) -> Vector2<T>

source§

fn zz(self) -> Vector2<T>

source§

fn xxz(self) -> Vector3<T>

source§

fn xyz(self) -> Vector3<T>

source§

fn xzx(self) -> Vector3<T>

source§

fn xzy(self) -> Vector3<T>

source§

fn xzz(self) -> Vector3<T>

source§

fn yxz(self) -> Vector3<T>

source§

fn yyz(self) -> Vector3<T>

source§

fn yzx(self) -> Vector3<T>

source§

fn yzy(self) -> Vector3<T>

source§

fn yzz(self) -> Vector3<T>

source§

fn zxx(self) -> Vector3<T>

source§

fn zxy(self) -> Vector3<T>

source§

fn zxz(self) -> Vector3<T>

source§

fn zyx(self) -> Vector3<T>

source§

fn zyy(self) -> Vector3<T>

source§

fn zyz(self) -> Vector3<T>

source§

fn zzx(self) -> Vector3<T>

source§

fn zzy(self) -> Vector3<T>

source§

fn zzz(self) -> Vector3<T>

source§

fn xxxz(self) -> Vector4<T>

source§

fn xxyz(self) -> Vector4<T>

source§

fn xxzx(self) -> Vector4<T>

source§

fn xxzy(self) -> Vector4<T>

source§

fn xxzz(self) -> Vector4<T>

source§

fn xyxz(self) -> Vector4<T>

source§

fn xyyz(self) -> Vector4<T>

source§

fn xyzx(self) -> Vector4<T>

source§

fn xyzy(self) -> Vector4<T>

source§

fn xyzz(self) -> Vector4<T>

source§

fn xzxx(self) -> Vector4<T>

source§

fn xzxy(self) -> Vector4<T>

source§

fn xzxz(self) -> Vector4<T>

source§

fn xzyx(self) -> Vector4<T>

source§

fn xzyy(self) -> Vector4<T>

source§

fn xzyz(self) -> Vector4<T>

source§

fn xzzx(self) -> Vector4<T>

source§

fn xzzy(self) -> Vector4<T>

source§

fn xzzz(self) -> Vector4<T>

source§

fn yxxz(self) -> Vector4<T>

source§

fn yxyz(self) -> Vector4<T>

source§

fn yxzx(self) -> Vector4<T>

source§

fn yxzy(self) -> Vector4<T>

source§

fn yxzz(self) -> Vector4<T>

source§

fn yyxz(self) -> Vector4<T>

source§

fn yyyz(self) -> Vector4<T>

source§

fn yyzx(self) -> Vector4<T>

source§

fn yyzy(self) -> Vector4<T>

source§

fn yyzz(self) -> Vector4<T>

source§

fn yzxx(self) -> Vector4<T>

source§

fn yzxy(self) -> Vector4<T>

source§

fn yzxz(self) -> Vector4<T>

source§

fn yzyx(self) -> Vector4<T>

source§

fn yzyy(self) -> Vector4<T>

source§

fn yzyz(self) -> Vector4<T>

source§

fn yzzx(self) -> Vector4<T>

source§

fn yzzy(self) -> Vector4<T>

source§

fn yzzz(self) -> Vector4<T>

source§

fn zxxx(self) -> Vector4<T>

source§

fn zxxy(self) -> Vector4<T>

source§

fn zxxz(self) -> Vector4<T>

source§

fn zxyx(self) -> Vector4<T>

source§

fn zxyy(self) -> Vector4<T>

source§

fn zxyz(self) -> Vector4<T>

source§

fn zxzx(self) -> Vector4<T>

source§

fn zxzy(self) -> Vector4<T>

source§

fn zxzz(self) -> Vector4<T>

source§

fn zyxx(self) -> Vector4<T>

source§

fn zyxy(self) -> Vector4<T>

source§

fn zyxz(self) -> Vector4<T>

source§

fn zyyx(self) -> Vector4<T>

source§

fn zyyy(self) -> Vector4<T>

source§

fn zyyz(self) -> Vector4<T>

source§

fn zyzx(self) -> Vector4<T>

source§

fn zyzy(self) -> Vector4<T>

source§

fn zyzz(self) -> Vector4<T>

source§

fn zzxx(self) -> Vector4<T>

source§

fn zzxy(self) -> Vector4<T>

source§

fn zzxz(self) -> Vector4<T>

source§

fn zzyx(self) -> Vector4<T>

source§

fn zzyy(self) -> Vector4<T>

source§

fn zzyz(self) -> Vector4<T>

source§

fn zzzx(self) -> Vector4<T>

source§

fn zzzy(self) -> Vector4<T>

source§

fn zzzz(self) -> Vector4<T>

source§

impl<T: Unit> Zeroable for Vector3<T>

SAFETY: T::Scalar is Zeroable, and Vector3 is #[repr(C)].

source§

fn zeroed() -> Self

source§

impl<T: Unit> Copy for Vector3<T>

source§

impl<T: Unit<Scalar: Eq>> Eq for Vector3<T>

source§

impl<T: Unit> Pod for Vector3<T>

SAFETY: T::Scalar is Pod.

Auto Trait Implementations§

§

impl<U> Freeze for Vector3<U>
where <U as Unit>::Scalar: Freeze,

§

impl<U> RefUnwindSafe for Vector3<U>
where <U as Unit>::Scalar: RefUnwindSafe,

§

impl<U> Send for Vector3<U>

§

impl<U> Sync for Vector3<U>

§

impl<U> Unpin for Vector3<U>
where <U as Unit>::Scalar: Unpin,

§

impl<U> UnwindSafe for Vector3<U>
where <U as Unit>::Scalar: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AnyBitPattern for T
where T: Pod,

source§

impl<T> NoUninit for T
where T: Pod,

source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

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>,

source§

impl<T> PodValue for T
where T: Copy + Debug + Default + PartialEq + Pod + Send + Sync + Serializable + 'static,

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

source§

impl<T> Serializable for T

source§

impl<T> WasmComponentType for T