pub struct ScalarVector2<T>(/* private fields */)
where
T: Scalar;Expand description
Скалярный вектор из 2 элементов
Trait Implementations§
Source§impl<T> Add<T> for ScalarVector2<T>where
T: Scalar,
impl<T> Add<T> for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: T) -> ScalarVector2<T>
fn add(self, rhs: T) -> ScalarVector2<T>
Performs the
+ operation. Read moreSource§impl<T> Add for ScalarVector2<T>where
T: Scalar,
impl<T> Add for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
fn add(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
Performs the
+ operation. Read moreSource§impl<T> Clone for ScalarVector2<T>
impl<T> Clone for ScalarVector2<T>
Source§fn clone(&self) -> ScalarVector2<T>
fn clone(&self) -> ScalarVector2<T>
Returns a duplicate of the value. Read more
1.0.0 · 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 ScalarVector2<T>
impl<T> Debug for ScalarVector2<T>
Source§impl<T> Default for ScalarVector2<T>where
T: Scalar,
impl<T> Default for ScalarVector2<T>where
T: Scalar,
Source§fn default() -> ScalarVector2<T>
fn default() -> ScalarVector2<T>
Returns the “default value” for a type. Read more
Source§impl<T> Div<T> for ScalarVector2<T>where
T: Scalar,
impl<T> Div<T> for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
/ operator.Source§fn div(self, rhs: T) -> ScalarVector2<T>
fn div(self, rhs: T) -> ScalarVector2<T>
Performs the
/ operation. Read moreSource§impl<T> Div for ScalarVector2<T>where
T: Scalar,
impl<T> Div for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
/ operator.Source§fn div(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
fn div(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
Performs the
/ operation. Read moreSource§impl<T> Mul<T> for ScalarVector2<T>where
T: Scalar,
impl<T> Mul<T> for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
* operator.Source§fn mul(self, rhs: T) -> ScalarVector2<T>
fn mul(self, rhs: T) -> ScalarVector2<T>
Performs the
* operation. Read moreSource§impl<T> Mul for ScalarVector2<T>where
T: Scalar,
impl<T> Mul for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
* operator.Source§fn mul(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
fn mul(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
Performs the
* operation. Read moreSource§impl<T> Neg for ScalarVector2<T>where
T: Scalar,
impl<T> Neg for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
- operator.Source§fn neg(self) -> ScalarVector2<T>
fn neg(self) -> ScalarVector2<T>
Performs the unary
- operation. Read moreSource§impl<T> PartialEq for ScalarVector2<T>
impl<T> PartialEq for ScalarVector2<T>
Source§impl<T> Rem<T> for ScalarVector2<T>where
T: Scalar,
impl<T> Rem<T> for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
% operator.Source§fn rem(self, rhs: T) -> ScalarVector2<T>
fn rem(self, rhs: T) -> ScalarVector2<T>
Performs the
% operation. Read moreSource§impl<T> Rem for ScalarVector2<T>where
T: Scalar,
impl<T> Rem for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
% operator.Source§fn rem(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
fn rem(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
Performs the
% operation. Read moreSource§impl<T> Sub<T> for ScalarVector2<T>where
T: Scalar,
impl<T> Sub<T> for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
- operator.Source§fn sub(self, rhs: T) -> ScalarVector2<T>
fn sub(self, rhs: T) -> ScalarVector2<T>
Performs the
- operation. Read moreSource§impl<T> Sub for ScalarVector2<T>where
T: Scalar,
impl<T> Sub for ScalarVector2<T>where
T: Scalar,
Source§type Output = ScalarVector2<T>
type Output = ScalarVector2<T>
The resulting type after applying the
- operator.Source§fn sub(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
fn sub(self, rhs: ScalarVector2<T>) -> ScalarVector2<T>
Performs the
- operation. Read moreSource§impl<T> Vector<T, 2> for ScalarVector2<T>where
T: Scalar,
impl<T> Vector<T, 2> for ScalarVector2<T>where
T: Scalar,
fn splat(value: T) -> ScalarVector2<T>
fn load(slice: &[T]) -> ScalarVector2<T>
fn store(&self, slice: &mut [T])
fn extract(&self, index: usize) -> T
fn insert(&self, index: usize, value: T) -> ScalarVector2<T>
fn add(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn sub(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn mul(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn div(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn rem(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn neg(&self) -> ScalarVector2<T>
fn abs(&self) -> ScalarVector2<T>
fn min(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn max(&self, other: &ScalarVector2<T>) -> ScalarVector2<T>
fn clamp( &self, min: &ScalarVector2<T>, max: &ScalarVector2<T>, ) -> ScalarVector2<T>
Source§impl<T> VectorTranscendental<T, 2> for ScalarVector2<T>where
T: Transcendental,
impl<T> VectorTranscendental<T, 2> for ScalarVector2<T>where
T: Transcendental,
fn sqrt(&self) -> ScalarVector2<T>
fn exp(&self) -> ScalarVector2<T>
fn ln(&self) -> ScalarVector2<T>
fn sin(&self) -> ScalarVector2<T>
fn cos(&self) -> ScalarVector2<T>
fn tan(&self) -> ScalarVector2<T>
impl<T> Copy for ScalarVector2<T>
impl<T> StructuralPartialEq for ScalarVector2<T>where
T: Scalar,
Auto Trait Implementations§
impl<T> Freeze for ScalarVector2<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScalarVector2<T>where
T: RefUnwindSafe,
impl<T> Send for ScalarVector2<T>
impl<T> Sync for ScalarVector2<T>
impl<T> Unpin for ScalarVector2<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScalarVector2<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ScalarVector2<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