pub struct Vector3d<C: Component> {
pub x: C,
pub y: C,
pub z: C,
}
Available on crate feature
vector
only.Expand description
3-dimensional vector
Fields§
§x: C
X component
y: C
Y component
z: C
Z component
Implementations§
Trait Implementations§
source§impl<C> AddAssign for Vector3d<C>where
C: Component,
impl<C> AddAssign for Vector3d<C>where C: Component,
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl<C> From<Vector3d<C>> for Quaternionwhere
C: Component + Into<f32>,
impl<C> From<Vector3d<C>> for Quaternionwhere C: Component + Into<f32>,
source§fn from(v: Vector3d<C>) -> Quaternion
fn from(v: Vector3d<C>) -> Quaternion
Converts to this type from the input type.
source§impl<C> FromIterator<C> for Vector3d<C>where
C: Component,
impl<C> FromIterator<C> for Vector3d<C>where C: Component,
source§fn from_iter<T>(into_iter: T) -> Selfwhere
T: IntoIterator<Item = C>,
fn from_iter<T>(into_iter: T) -> Selfwhere T: IntoIterator<Item = C>,
Creates a value from an iterator. Read more
source§impl<C> MulAssign<C> for Vector3d<C>where
C: Component,
impl<C> MulAssign<C> for Vector3d<C>where C: Component,
source§fn mul_assign(&mut self, rhs: C)
fn mul_assign(&mut self, rhs: C)
Performs the
*=
operation. Read moresource§impl<C: PartialEq + Component> PartialEq for Vector3d<C>
impl<C: PartialEq + Component> PartialEq for Vector3d<C>
source§impl<C> SubAssign for Vector3d<C>where
C: Component,
impl<C> SubAssign for Vector3d<C>where C: Component,
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moresource§impl<C> Vector<C> for Vector3d<C>where
C: Component,
impl<C> Vector<C> for Vector3d<C>where C: Component,
source§fn from_slice(slice: &[C]) -> Self
fn from_slice(slice: &[C]) -> Self
Instantiate a vector from a slice of components. Read more
impl<C: Copy + Component> Copy for Vector3d<C>
impl<C: Component> StructuralPartialEq for Vector3d<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Vector3d<C>where C: RefUnwindSafe,
impl<C> Send for Vector3d<C>
impl<C> Sync for Vector3d<C>
impl<C> Unpin for Vector3d<C>where C: Unpin,
impl<C> UnwindSafe for Vector3d<C>where C: 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