pub struct ScalarVector4<T>(/* private fields */)
where
T: Scalar;Expand description
Scalar vector of 4 elements
Trait Implementations§
Source§impl<T> Add<T> for ScalarVector4<T>where
T: Scalar,
impl<T> Add<T> for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: T) -> ScalarVector4<T>
fn add(self, rhs: T) -> ScalarVector4<T>
Performs the
+ operation. Read moreSource§impl<T> Add for ScalarVector4<T>where
T: Scalar,
impl<T> Add for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
fn add(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
Performs the
+ operation. Read moreSource§impl<T> Clone for ScalarVector4<T>
impl<T> Clone for ScalarVector4<T>
Source§fn clone(&self) -> ScalarVector4<T>
fn clone(&self) -> ScalarVector4<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for ScalarVector4<T>
impl<T> Debug for ScalarVector4<T>
Source§impl<T> Default for ScalarVector4<T>where
T: Scalar,
impl<T> Default for ScalarVector4<T>where
T: Scalar,
Source§fn default() -> ScalarVector4<T>
fn default() -> ScalarVector4<T>
Returns the “default value” for a type. Read more
Source§impl<T> Div<T> for ScalarVector4<T>where
T: Scalar,
impl<T> Div<T> for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
/ operator.Source§fn div(self, rhs: T) -> ScalarVector4<T>
fn div(self, rhs: T) -> ScalarVector4<T>
Performs the
/ operation. Read moreSource§impl<T> Div for ScalarVector4<T>where
T: Scalar,
impl<T> Div for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
/ operator.Source§fn div(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
fn div(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
Performs the
/ operation. Read moreSource§impl<T> Mul<T> for ScalarVector4<T>where
T: Scalar,
impl<T> Mul<T> for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
* operator.Source§fn mul(self, rhs: T) -> ScalarVector4<T>
fn mul(self, rhs: T) -> ScalarVector4<T>
Performs the
* operation. Read moreSource§impl<T> Mul for ScalarVector4<T>where
T: Scalar,
impl<T> Mul for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
* operator.Source§fn mul(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
fn mul(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
Performs the
* operation. Read moreSource§impl<T> Neg for ScalarVector4<T>where
T: Scalar,
impl<T> Neg for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
- operator.Source§fn neg(self) -> ScalarVector4<T>
fn neg(self) -> ScalarVector4<T>
Performs the unary
- operation. Read moreSource§impl<T> PartialEq for ScalarVector4<T>
impl<T> PartialEq for ScalarVector4<T>
Source§fn eq(&self, other: &ScalarVector4<T>) -> bool
fn eq(&self, other: &ScalarVector4<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> Rem<T> for ScalarVector4<T>where
T: Scalar,
impl<T> Rem<T> for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
% operator.Source§fn rem(self, rhs: T) -> ScalarVector4<T>
fn rem(self, rhs: T) -> ScalarVector4<T>
Performs the
% operation. Read moreSource§impl<T> Rem for ScalarVector4<T>where
T: Scalar,
impl<T> Rem for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
% operator.Source§fn rem(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
fn rem(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
Performs the
% operation. Read moreSource§impl<T> Sub<T> for ScalarVector4<T>where
T: Scalar,
impl<T> Sub<T> for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
- operator.Source§fn sub(self, rhs: T) -> ScalarVector4<T>
fn sub(self, rhs: T) -> ScalarVector4<T>
Performs the
- operation. Read moreSource§impl<T> Sub for ScalarVector4<T>where
T: Scalar,
impl<T> Sub for ScalarVector4<T>where
T: Scalar,
Source§type Output = ScalarVector4<T>
type Output = ScalarVector4<T>
The resulting type after applying the
- operator.Source§fn sub(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
fn sub(self, rhs: ScalarVector4<T>) -> ScalarVector4<T>
Performs the
- operation. Read moreSource§impl<T> Vector<T, 4> for ScalarVector4<T>where
T: Scalar,
impl<T> Vector<T, 4> for ScalarVector4<T>where
T: Scalar,
Source§fn splat(value: T) -> ScalarVector4<T>
fn splat(value: T) -> ScalarVector4<T>
Construct a vector with all lanes set to the same value.
Source§fn load(slice: &[T]) -> ScalarVector4<T>
fn load(slice: &[T]) -> ScalarVector4<T>
Load a vector from a slice (panics if slice is too short).
Source§fn insert(&self, index: usize, value: T) -> ScalarVector4<T>
fn insert(&self, index: usize, value: T) -> ScalarVector4<T>
Return a new vector with the value at the given lane replaced.
Source§fn add(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn add(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise addition.
Source§fn sub(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn sub(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise subtraction.
Source§fn mul(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn mul(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise multiplication.
Source§fn div(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn div(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise division.
Source§fn rem(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn rem(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise remainder.
Source§fn neg(&self) -> ScalarVector4<T>
fn neg(&self) -> ScalarVector4<T>
Lane-wise negation.
Source§fn abs(&self) -> ScalarVector4<T>
fn abs(&self) -> ScalarVector4<T>
Lane-wise absolute value.
Source§fn min(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn min(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise minimum.
Source§fn max(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
fn max(&self, other: &ScalarVector4<T>) -> ScalarVector4<T>
Lane-wise maximum.
Source§fn clamp(
&self,
min: &ScalarVector4<T>,
max: &ScalarVector4<T>,
) -> ScalarVector4<T>
fn clamp( &self, min: &ScalarVector4<T>, max: &ScalarVector4<T>, ) -> ScalarVector4<T>
Lane-wise clamp to the inclusive range
[min, max].Source§impl<T> VectorTranscendental<T, 4> for ScalarVector4<T>where
T: Transcendental,
impl<T> VectorTranscendental<T, 4> for ScalarVector4<T>where
T: Transcendental,
Source§fn sqrt(&self) -> ScalarVector4<T>
fn sqrt(&self) -> ScalarVector4<T>
Lane-wise square root.
Source§fn exp(&self) -> ScalarVector4<T>
fn exp(&self) -> ScalarVector4<T>
Lane-wise exponential (e^x).
Source§fn ln(&self) -> ScalarVector4<T>
fn ln(&self) -> ScalarVector4<T>
Lane-wise natural logarithm.
Source§fn sin(&self) -> ScalarVector4<T>
fn sin(&self) -> ScalarVector4<T>
Lane-wise sine (input in radians).
Source§fn cos(&self) -> ScalarVector4<T>
fn cos(&self) -> ScalarVector4<T>
Lane-wise cosine (input in radians).
Source§fn tan(&self) -> ScalarVector4<T>
fn tan(&self) -> ScalarVector4<T>
Lane-wise tangent (input in radians).
impl<T> Copy for ScalarVector4<T>
impl<T> StructuralPartialEq for ScalarVector4<T>where
T: Scalar,
Auto Trait Implementations§
impl<T> Freeze for ScalarVector4<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScalarVector4<T>where
T: RefUnwindSafe,
impl<T> Send for ScalarVector4<T>
impl<T> Sync for ScalarVector4<T>
impl<T> Unpin for ScalarVector4<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScalarVector4<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ScalarVector4<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more