pub trait VecOps: Sized + FPVectorwhere
Self::Scalar: Copy + Clone + Add<Self::Scalar, Output = Self::Scalar> + Sub<Self::Scalar, Output = Self::Scalar> + Mul<Self::Scalar, Output = Self::Scalar> + Div<Self::Scalar, Output = Self::Scalar>,{
// Provided methods
fn add_v(&self, v: &Self) -> Self { ... }
fn sub_v(&self, v: &Self) -> Self { ... }
fn mul_v(&self, v: &Self) -> Self { ... }
fn div_v(&self, v: &Self) -> Self { ... }
fn add_s(&self, s: Self::Scalar) -> Self { ... }
fn sub_s(&self, s: Self::Scalar) -> Self { ... }
fn mul_s(&self, s: Self::Scalar) -> Self { ... }
fn div_s(&self, s: Self::Scalar) -> Self { ... }
}
Expand description
Syntactic sugar for Vector operations
Provided Methods§
fn add_v(&self, v: &Self) -> Self
fn sub_v(&self, v: &Self) -> Self
fn mul_v(&self, v: &Self) -> Self
fn div_v(&self, v: &Self) -> Self
fn add_s(&self, s: Self::Scalar) -> Self
fn sub_s(&self, s: Self::Scalar) -> Self
fn mul_s(&self, s: Self::Scalar) -> Self
fn div_s(&self, s: Self::Scalar) -> Self
Object Safety§
This trait is not object safe.