[−][src]Trait cgmath::prelude::ElementWise
Element-wise arithmetic operations. These are supplied for pragmatic reasons, but will usually fall outside of traditional algebraic properties.
Element-wise arithmetic operations. These are supplied for pragmatic reasons, but will usually fall outside of traditional algebraic properties.
fn add_element_wise(self, rhs: Rhs) -> Self
fn sub_element_wise(self, rhs: Rhs) -> Self
fn mul_element_wise(self, rhs: Rhs) -> Self
fn div_element_wise(self, rhs: Rhs) -> Self
fn rem_element_wise(self, rhs: Rhs) -> Self
fn add_assign_element_wise(&mut self, rhs: Rhs)
fn sub_assign_element_wise(&mut self, rhs: Rhs)
fn mul_assign_element_wise(&mut self, rhs: Rhs)
fn div_assign_element_wise(&mut self, rhs: Rhs)
fn rem_assign_element_wise(&mut self, rhs: Rhs)
impl<S: BaseNum> ElementWise<Point1<S>> for Point1<S>
[src]fn add_element_wise(self, rhs: Point1<S>) -> Point1<S>
[src]fn sub_element_wise(self, rhs: Point1<S>) -> Point1<S>
[src]fn mul_element_wise(self, rhs: Point1<S>) -> Point1<S>
[src]fn div_element_wise(self, rhs: Point1<S>) -> Point1<S>
[src]fn rem_element_wise(self, rhs: Point1<S>) -> Point1<S>
[src]fn add_assign_element_wise(&mut self, rhs: Point1<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Point1<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Point1<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Point1<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Point1<S>)
[src]impl<S: BaseNum> ElementWise<Point2<S>> for Point2<S>
[src]fn add_element_wise(self, rhs: Point2<S>) -> Point2<S>
[src]fn sub_element_wise(self, rhs: Point2<S>) -> Point2<S>
[src]fn mul_element_wise(self, rhs: Point2<S>) -> Point2<S>
[src]fn div_element_wise(self, rhs: Point2<S>) -> Point2<S>
[src]fn rem_element_wise(self, rhs: Point2<S>) -> Point2<S>
[src]fn add_assign_element_wise(&mut self, rhs: Point2<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Point2<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Point2<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Point2<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Point2<S>)
[src]impl<S: BaseNum> ElementWise<Point3<S>> for Point3<S>
[src]fn add_element_wise(self, rhs: Point3<S>) -> Point3<S>
[src]fn sub_element_wise(self, rhs: Point3<S>) -> Point3<S>
[src]fn mul_element_wise(self, rhs: Point3<S>) -> Point3<S>
[src]fn div_element_wise(self, rhs: Point3<S>) -> Point3<S>
[src]fn rem_element_wise(self, rhs: Point3<S>) -> Point3<S>
[src]fn add_assign_element_wise(&mut self, rhs: Point3<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Point3<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Point3<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Point3<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Point3<S>)
[src]impl<S: BaseNum> ElementWise<Vector1<S>> for Vector1<S>
[src]fn add_element_wise(self, rhs: Vector1<S>) -> Vector1<S>
[src]fn sub_element_wise(self, rhs: Vector1<S>) -> Vector1<S>
[src]fn mul_element_wise(self, rhs: Vector1<S>) -> Vector1<S>
[src]fn div_element_wise(self, rhs: Vector1<S>) -> Vector1<S>
[src]fn rem_element_wise(self, rhs: Vector1<S>) -> Vector1<S>
[src]fn add_assign_element_wise(&mut self, rhs: Vector1<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Vector1<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Vector1<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Vector1<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Vector1<S>)
[src]impl<S: BaseNum> ElementWise<Vector2<S>> for Vector2<S>
[src]fn add_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]fn sub_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]fn mul_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]fn div_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]fn rem_element_wise(self, rhs: Vector2<S>) -> Vector2<S>
[src]fn add_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Vector2<S>)
[src]impl<S: BaseNum> ElementWise<Vector3<S>> for Vector3<S>
[src]fn add_element_wise(self, rhs: Vector3<S>) -> Vector3<S>
[src]fn sub_element_wise(self, rhs: Vector3<S>) -> Vector3<S>
[src]fn mul_element_wise(self, rhs: Vector3<S>) -> Vector3<S>
[src]fn div_element_wise(self, rhs: Vector3<S>) -> Vector3<S>
[src]fn rem_element_wise(self, rhs: Vector3<S>) -> Vector3<S>
[src]fn add_assign_element_wise(&mut self, rhs: Vector3<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Vector3<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Vector3<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Vector3<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Vector3<S>)
[src]impl<S: BaseNum> ElementWise<Vector4<S>> for Vector4<S>
[src]fn add_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]fn sub_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]fn mul_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]fn div_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]fn rem_element_wise(self, rhs: Vector4<S>) -> Vector4<S>
[src]fn add_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]fn sub_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]fn mul_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]fn div_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]fn rem_assign_element_wise(&mut self, rhs: Vector4<S>)
[src]impl<S: BaseNum> ElementWise<S> for Point1<S>
[src]fn add_element_wise(self, rhs: S) -> Point1<S>
[src]fn sub_element_wise(self, rhs: S) -> Point1<S>
[src]fn mul_element_wise(self, rhs: S) -> Point1<S>
[src]fn div_element_wise(self, rhs: S) -> Point1<S>
[src]fn rem_element_wise(self, rhs: S) -> Point1<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]impl<S: BaseNum> ElementWise<S> for Point2<S>
[src]fn add_element_wise(self, rhs: S) -> Point2<S>
[src]fn sub_element_wise(self, rhs: S) -> Point2<S>
[src]fn mul_element_wise(self, rhs: S) -> Point2<S>
[src]fn div_element_wise(self, rhs: S) -> Point2<S>
[src]fn rem_element_wise(self, rhs: S) -> Point2<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]impl<S: BaseNum> ElementWise<S> for Point3<S>
[src]fn add_element_wise(self, rhs: S) -> Point3<S>
[src]fn sub_element_wise(self, rhs: S) -> Point3<S>
[src]fn mul_element_wise(self, rhs: S) -> Point3<S>
[src]fn div_element_wise(self, rhs: S) -> Point3<S>
[src]fn rem_element_wise(self, rhs: S) -> Point3<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]impl<S: BaseNum> ElementWise<S> for Vector1<S>
[src]fn add_element_wise(self, rhs: S) -> Vector1<S>
[src]fn sub_element_wise(self, rhs: S) -> Vector1<S>
[src]fn mul_element_wise(self, rhs: S) -> Vector1<S>
[src]fn div_element_wise(self, rhs: S) -> Vector1<S>
[src]fn rem_element_wise(self, rhs: S) -> Vector1<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]impl<S: BaseNum> ElementWise<S> for Vector2<S>
[src]fn add_element_wise(self, rhs: S) -> Vector2<S>
[src]fn sub_element_wise(self, rhs: S) -> Vector2<S>
[src]fn mul_element_wise(self, rhs: S) -> Vector2<S>
[src]fn div_element_wise(self, rhs: S) -> Vector2<S>
[src]fn rem_element_wise(self, rhs: S) -> Vector2<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]impl<S: BaseNum> ElementWise<S> for Vector3<S>
[src]fn add_element_wise(self, rhs: S) -> Vector3<S>
[src]fn sub_element_wise(self, rhs: S) -> Vector3<S>
[src]fn mul_element_wise(self, rhs: S) -> Vector3<S>
[src]fn div_element_wise(self, rhs: S) -> Vector3<S>
[src]fn rem_element_wise(self, rhs: S) -> Vector3<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]impl<S: BaseNum> ElementWise<S> for Vector4<S>
[src]fn add_element_wise(self, rhs: S) -> Vector4<S>
[src]fn sub_element_wise(self, rhs: S) -> Vector4<S>
[src]fn mul_element_wise(self, rhs: S) -> Vector4<S>
[src]fn div_element_wise(self, rhs: S) -> Vector4<S>
[src]fn rem_element_wise(self, rhs: S) -> Vector4<S>
[src]fn add_assign_element_wise(&mut self, rhs: S)
[src]fn sub_assign_element_wise(&mut self, rhs: S)
[src]fn mul_assign_element_wise(&mut self, rhs: S)
[src]fn div_assign_element_wise(&mut self, rhs: S)
[src]fn rem_assign_element_wise(&mut self, rhs: S)
[src]