[−][src]Struct fpn::cg::Vector3
Vector3 provides the common 3D coordinates container
Common ops
traits are implemented for primitive types and FPN.
Vector3 is not Copy
, so try use reference when getting borrow conflicts, like
use fpn::Vector3; let v = Vector3::new(1f32, 1f32, 1f32); // let added = v + v; // this will panic let added = &v + &v; // or let double = v * 2f32;
Dot product and cross product are provided with trait Dot
and Cross
.
For Vector3<FPN>
, bitwize shift is provided too.
Fields
x: T
y: T
z: T
Implementations
impl<T> Vector3<T>
[src]
impl<F> Vector3<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i8, y: i8, z: i8) -> Self
[src]
pub fn set_x(&mut self, v: i8)
[src]
pub fn set_y(&mut self, v: i8)
[src]
pub fn set_z(&mut self, v: i8)
[src]
impl<F> Vector3<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i16, y: i16, z: i16) -> Self
[src]
pub fn set_x(&mut self, v: i16)
[src]
pub fn set_y(&mut self, v: i16)
[src]
pub fn set_z(&mut self, v: i16)
[src]
impl<F> Vector3<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i32, y: i32, z: i32) -> Self
[src]
pub fn set_x(&mut self, v: i32)
[src]
pub fn set_y(&mut self, v: i32)
[src]
pub fn set_z(&mut self, v: i32)
[src]
impl<F> Vector3<FPN<I, F>> where
F: Unsigned,
[src]
F: Unsigned,
pub fn with(x: i64, y: i64, z: i64) -> Self
[src]
pub fn set_x(&mut self, v: i64)
[src]
pub fn set_y(&mut self, v: i64)
[src]
pub fn set_z(&mut self, v: i64)
[src]
Trait Implementations
impl<'_, F> Add<&'_ Vector3<FPN<i16, F>>> for &'_ FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i16, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i32, F>>> for &'_ FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i32, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i64, F>>> for &'_ FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i64, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i8, F>>> for &'_ FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i8, F>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<&'_ Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<f32>> for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<f32>> for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<f64>> for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<f64>> for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i16>> for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i16>> for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i32>> for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i32>> for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i64>> for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i64>> for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i8>> for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<&'_ Vector3<i8>> for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: &Self) -> Self::Output
[src]
impl<F> Add<Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector3<FPN<i16, F>>> for &'_ FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i16, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector3<i16, F>) -> Self::Output
[src]
impl<F> Add<Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector3<FPN<i32, F>>> for &'_ FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i32, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector3<i32, F>) -> Self::Output
[src]
impl<F> Add<Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector3<FPN<i64, F>>> for &'_ FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i64, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector3<i64, F>) -> Self::Output
[src]
impl<F> Add<Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_, F> Add<Vector3<FPN<i8, F>>> for &'_ FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i8, F>
The resulting type after applying the +
operator.
fn add(self, v: FVector3<i8, F>) -> Self::Output
[src]
impl Add<Vector3<f32>> for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<Vector3<f32>> for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f32>) -> Self::Output
[src]
impl Add<Vector3<f64>> for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<Vector3<f64>> for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the +
operator.
fn add(self, v: Vector3<f64>) -> Self::Output
[src]
impl Add<Vector3<i16>> for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<Vector3<i16>> for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i16>) -> Self::Output
[src]
impl<F> Add<Vector3<i16>> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i16>) -> Self
[src]
impl Add<Vector3<i32>> for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<Vector3<i32>> for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i32>) -> Self::Output
[src]
impl<F> Add<Vector3<i32>> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i32>) -> Self
[src]
impl Add<Vector3<i64>> for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<Vector3<i64>> for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i64>) -> Self::Output
[src]
impl<F> Add<Vector3<i64>> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i64>) -> Self
[src]
impl Add<Vector3<i8>> for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Self) -> Self::Output
[src]
impl<'_> Add<Vector3<i8>> for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i8>) -> Self::Output
[src]
impl<F> Add<Vector3<i8>> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, v: Vector3<i8>) -> Self
[src]
impl<'_, F> AddAssign<&'_ Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_, F> AddAssign<&'_ Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_, F> AddAssign<&'_ Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_, F> AddAssign<&'_ Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector3<f32>> for Vector3<f32>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector3<f64>> for Vector3<f64>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector3<i16>> for Vector3<i16>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector3<i32>> for Vector3<i32>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector3<i64>> for Vector3<i64>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<'_> AddAssign<&'_ Vector3<i8>> for Vector3<i8>
[src]
fn add_assign(&mut self, v: &Self)
[src]
impl<F> AddAssign<Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Self)
[src]
impl AddAssign<Vector3<f32>> for Vector3<f32>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl AddAssign<Vector3<f64>> for Vector3<f64>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl AddAssign<Vector3<i16>> for Vector3<i16>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<i16>> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector3<i16>)
[src]
impl AddAssign<Vector3<i32>> for Vector3<i32>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<i32>> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector3<i32>)
[src]
impl AddAssign<Vector3<i64>> for Vector3<i64>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<i64>> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector3<i64>)
[src]
impl AddAssign<Vector3<i8>> for Vector3<i8>
[src]
fn add_assign(&mut self, v: Self)
[src]
impl<F> AddAssign<Vector3<i8>> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn add_assign(&mut self, v: Vector3<i8>)
[src]
impl<T> Clone for Vector3<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Cross<f32> for Vector3<f32>
[src]
impl Cross<f64> for Vector3<f64>
[src]
impl Cross<i16> for Vector3<i16>
[src]
impl Cross<i32> for Vector3<i32>
[src]
impl Cross<i64> for Vector3<i64>
[src]
impl Cross<i8> for Vector3<i8>
[src]
impl<T> Debug for Vector3<T> where
T: Debug,
[src]
T: Debug,
impl<T> Display for Vector3<T> where
T: Display,
[src]
T: Display,
impl Div<f32> for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: f32) -> Self
[src]
impl<'_> Div<f32> for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the /
operator.
fn div(self, v: f32) -> Self::Output
[src]
impl Div<f64> for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: f64) -> Self
[src]
impl<'_> Div<f64> for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the /
operator.
fn div(self, v: f64) -> Self::Output
[src]
impl Div<i16> for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i16) -> Self
[src]
impl<'_> Div<i16> for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the /
operator.
fn div(self, v: i16) -> Self::Output
[src]
impl<F> Div<i16> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i16) -> Self
[src]
impl Div<i32> for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i32) -> Self
[src]
impl<'_> Div<i32> for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the /
operator.
fn div(self, v: i32) -> Self::Output
[src]
impl<F> Div<i32> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i32) -> Self
[src]
impl Div<i64> for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i64) -> Self
[src]
impl<'_> Div<i64> for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the /
operator.
fn div(self, v: i64) -> Self::Output
[src]
impl<F> Div<i64> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i64) -> Self
[src]
impl Div<i8> for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i8) -> Self
[src]
impl<'_> Div<i8> for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the /
operator.
fn div(self, v: i8) -> Self::Output
[src]
impl<F> Div<i8> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, v: i8) -> Self
[src]
impl<F> DivAssign<FPN<i16, F>> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i16, F>)
[src]
impl<F> DivAssign<FPN<i32, F>> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i32, F>)
[src]
impl<F> DivAssign<FPN<i64, F>> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i64, F>)
[src]
impl<F> DivAssign<FPN<i8, F>> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: FPN<i8, F>)
[src]
impl DivAssign<f32> for Vector3<f32>
[src]
fn div_assign(&mut self, v: f32)
[src]
impl DivAssign<f64> for Vector3<f64>
[src]
fn div_assign(&mut self, v: f64)
[src]
impl DivAssign<i16> for Vector3<i16>
[src]
fn div_assign(&mut self, v: i16)
[src]
impl<F> DivAssign<i16> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i16)
[src]
impl DivAssign<i32> for Vector3<i32>
[src]
fn div_assign(&mut self, v: i32)
[src]
impl<F> DivAssign<i32> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i32)
[src]
impl DivAssign<i64> for Vector3<i64>
[src]
fn div_assign(&mut self, v: i64)
[src]
impl<F> DivAssign<i64> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i64)
[src]
impl DivAssign<i8> for Vector3<i8>
[src]
fn div_assign(&mut self, v: i8)
[src]
impl<F> DivAssign<i8> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn div_assign(&mut self, v: i8)
[src]
impl Dot<f32> for Vector3<f32>
[src]
impl Dot<f64> for Vector3<f64>
[src]
impl Dot<i16> for Vector3<i16>
[src]
impl Dot<i32> for Vector3<i32>
[src]
impl Dot<i64> for Vector3<i64>
[src]
impl Dot<i8> for Vector3<i8>
[src]
impl<T> Eq for Vector3<T> where
T: Eq,
[src]
T: Eq,
impl Mul<f32> for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: f32) -> Self
[src]
impl<'_> Mul<f32> for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the *
operator.
fn mul(self, v: f32) -> Self::Output
[src]
impl Mul<f64> for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: f64) -> Self
[src]
impl<'_> Mul<f64> for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the *
operator.
fn mul(self, v: f64) -> Self::Output
[src]
impl Mul<i16> for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i16) -> Self
[src]
impl<'_> Mul<i16> for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the *
operator.
fn mul(self, v: i16) -> Self::Output
[src]
impl<F> Mul<i16> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i16) -> Self
[src]
impl Mul<i32> for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i32) -> Self
[src]
impl<'_> Mul<i32> for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the *
operator.
fn mul(self, v: i32) -> Self::Output
[src]
impl<F> Mul<i32> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i32) -> Self
[src]
impl Mul<i64> for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i64) -> Self
[src]
impl<'_> Mul<i64> for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the *
operator.
fn mul(self, v: i64) -> Self::Output
[src]
impl<F> Mul<i64> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i64) -> Self
[src]
impl Mul<i8> for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i8) -> Self
[src]
impl<'_> Mul<i8> for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the *
operator.
fn mul(self, v: i8) -> Self::Output
[src]
impl<F> Mul<i8> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, v: i8) -> Self
[src]
impl MulAssign<f32> for Vector3<f32>
[src]
fn mul_assign(&mut self, v: f32)
[src]
impl MulAssign<f64> for Vector3<f64>
[src]
fn mul_assign(&mut self, v: f64)
[src]
impl MulAssign<i16> for Vector3<i16>
[src]
fn mul_assign(&mut self, v: i16)
[src]
impl<F> MulAssign<i16> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i16)
[src]
impl MulAssign<i32> for Vector3<i32>
[src]
fn mul_assign(&mut self, v: i32)
[src]
impl<F> MulAssign<i32> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i32)
[src]
impl MulAssign<i64> for Vector3<i64>
[src]
fn mul_assign(&mut self, v: i64)
[src]
impl<F> MulAssign<i64> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i64)
[src]
impl MulAssign<i8> for Vector3<i8>
[src]
fn mul_assign(&mut self, v: i8)
[src]
impl<F> MulAssign<i8> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn mul_assign(&mut self, v: i8)
[src]
impl Neg for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Neg for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<'_> Neg for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T> PartialEq<Vector3<T>> for Vector3<T> where
T: PartialEq,
[src]
T: PartialEq,
impl Polar<f32> for Vector3<f32>
[src]
impl Polar<f64> for Vector3<f64>
[src]
impl Polar<i16> for Vector3<i16>
[src]
impl Polar<i32> for Vector3<i32>
[src]
impl Polar<i64> for Vector3<i64>
[src]
impl Polar<i8> for Vector3<i8>
[src]
impl Rotate3<f32> for Vector3<f32>
[src]
fn rotate_y(&self, v: f32) -> Self
[src]
fn rotate_z(&self, v: f32) -> Self
[src]
fn rotate_x(&self, v: f32) -> Self
[src]
impl Rotate3<f64> for Vector3<f64>
[src]
fn rotate_y(&self, v: f64) -> Self
[src]
fn rotate_z(&self, v: f64) -> Self
[src]
fn rotate_x(&self, v: f64) -> Self
[src]
impl Rotate3<i16> for Vector3<i16>
[src]
fn rotate_y(&self, v: i16) -> Self
[src]
fn rotate_z(&self, v: i16) -> Self
[src]
fn rotate_x(&self, v: i16) -> Self
[src]
impl Rotate3<i32> for Vector3<i32>
[src]
fn rotate_y(&self, v: i32) -> Self
[src]
fn rotate_z(&self, v: i32) -> Self
[src]
fn rotate_x(&self, v: i32) -> Self
[src]
impl Rotate3<i64> for Vector3<i64>
[src]
fn rotate_y(&self, v: i64) -> Self
[src]
fn rotate_z(&self, v: i64) -> Self
[src]
fn rotate_x(&self, v: i64) -> Self
[src]
impl Rotate3<i8> for Vector3<i8>
[src]
fn rotate_y(&self, v: i8) -> Self
[src]
fn rotate_z(&self, v: i8) -> Self
[src]
fn rotate_x(&self, v: i8) -> Self
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i16, F>>> for &'_ FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i16, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i32, F>>> for &'_ FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i32, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i64, F>>> for &'_ FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i64, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i8, F>>> for &'_ FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i8, F>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<&'_ Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<f32>> for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<f32>> for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<f64>> for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<f64>> for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i16>> for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i16>> for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i32>> for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i32>> for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i64>> for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i64>> for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i8>> for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<&'_ Vector3<i8>> for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: &Self) -> Self::Output
[src]
impl<F> Sub<Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector3<FPN<i16, F>>> for &'_ FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i16, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector3<i16, F>) -> Self::Output
[src]
impl<F> Sub<Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector3<FPN<i32, F>>> for &'_ FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i32, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector3<i32, F>) -> Self::Output
[src]
impl<F> Sub<Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector3<FPN<i64, F>>> for &'_ FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i64, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector3<i64, F>) -> Self::Output
[src]
impl<F> Sub<Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_, F> Sub<Vector3<FPN<i8, F>>> for &'_ FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
type Output = FVector3<i8, F>
The resulting type after applying the -
operator.
fn sub(self, v: FVector3<i8, F>) -> Self::Output
[src]
impl Sub<Vector3<f32>> for Vector3<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector3<f32>> for &'_ Vector3<f32>
[src]
type Output = Vector3<f32>
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f32>) -> Self::Output
[src]
impl Sub<Vector3<f64>> for Vector3<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector3<f64>> for &'_ Vector3<f64>
[src]
type Output = Vector3<f64>
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<f64>) -> Self::Output
[src]
impl Sub<Vector3<i16>> for Vector3<i16>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector3<i16>> for &'_ Vector3<i16>
[src]
type Output = Vector3<i16>
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i16>) -> Self::Output
[src]
impl<F> Sub<Vector3<i16>> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i16>) -> Self
[src]
impl Sub<Vector3<i32>> for Vector3<i32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector3<i32>> for &'_ Vector3<i32>
[src]
type Output = Vector3<i32>
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i32>) -> Self::Output
[src]
impl<F> Sub<Vector3<i32>> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i32>) -> Self
[src]
impl Sub<Vector3<i64>> for Vector3<i64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector3<i64>> for &'_ Vector3<i64>
[src]
type Output = Vector3<i64>
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i64>) -> Self::Output
[src]
impl<F> Sub<Vector3<i64>> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i64>) -> Self
[src]
impl Sub<Vector3<i8>> for Vector3<i8>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Self) -> Self::Output
[src]
impl<'_> Sub<Vector3<i8>> for &'_ Vector3<i8>
[src]
type Output = Vector3<i8>
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i8>) -> Self::Output
[src]
impl<F> Sub<Vector3<i8>> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, v: Vector3<i8>) -> Self
[src]
impl<'_, F> SubAssign<&'_ Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_, F> SubAssign<&'_ Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_, F> SubAssign<&'_ Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_, F> SubAssign<&'_ Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector3<f32>> for Vector3<f32>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector3<f64>> for Vector3<f64>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector3<i16>> for Vector3<i16>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector3<i32>> for Vector3<i32>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector3<i64>> for Vector3<i64>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<'_> SubAssign<&'_ Vector3<i8>> for Vector3<i8>
[src]
fn sub_assign(&mut self, v: &Self)
[src]
impl<F> SubAssign<Vector3<FPN<i16, F>>> for FVector3<i16, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<FPN<i32, F>>> for FVector3<i32, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<FPN<i64, F>>> for FVector3<i64, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<FPN<i8, F>>> for FVector3<i8, F> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Self)
[src]
impl SubAssign<Vector3<f32>> for Vector3<f32>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl SubAssign<Vector3<f64>> for Vector3<f64>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl SubAssign<Vector3<i16>> for Vector3<i16>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<i16>> for Vector3<FPN<i16, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector3<i16>)
[src]
impl SubAssign<Vector3<i32>> for Vector3<i32>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<i32>> for Vector3<FPN<i32, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector3<i32>)
[src]
impl SubAssign<Vector3<i64>> for Vector3<i64>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<i64>> for Vector3<FPN<i64, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector3<i64>)
[src]
impl SubAssign<Vector3<i8>> for Vector3<i8>
[src]
fn sub_assign(&mut self, v: Self)
[src]
impl<F> SubAssign<Vector3<i8>> for Vector3<FPN<i8, F>> where
F: Unsigned,
[src]
F: Unsigned,
fn sub_assign(&mut self, v: Vector3<i8>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Vector3<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Vector3<T> where
T: Send,
T: Send,
impl<T> Sync for Vector3<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector3<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Vector3<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,