[][src]Trait cgmath::prelude::ElementWise

pub trait ElementWise<Rhs = Self> {
    pub fn add_element_wise(self, rhs: Rhs) -> Self;
pub fn sub_element_wise(self, rhs: Rhs) -> Self;
pub fn mul_element_wise(self, rhs: Rhs) -> Self;
pub fn div_element_wise(self, rhs: Rhs) -> Self;
pub fn rem_element_wise(self, rhs: Rhs) -> Self;
pub fn add_assign_element_wise(&mut self, rhs: Rhs);
pub fn sub_assign_element_wise(&mut self, rhs: Rhs);
pub fn mul_assign_element_wise(&mut self, rhs: Rhs);
pub fn div_assign_element_wise(&mut self, rhs: Rhs);
pub fn rem_assign_element_wise(&mut self, rhs: Rhs); }

Element-wise arithmetic operations. These are supplied for pragmatic reasons, but will usually fall outside of traditional algebraic properties.

Required methods

pub fn add_element_wise(self, rhs: Rhs) -> Self[src]

pub fn sub_element_wise(self, rhs: Rhs) -> Self[src]

pub fn mul_element_wise(self, rhs: Rhs) -> Self[src]

pub fn div_element_wise(self, rhs: Rhs) -> Self[src]

pub fn rem_element_wise(self, rhs: Rhs) -> Self[src]

pub fn add_assign_element_wise(&mut self, rhs: Rhs)[src]

pub fn sub_assign_element_wise(&mut self, rhs: Rhs)[src]

pub fn mul_assign_element_wise(&mut self, rhs: Rhs)[src]

pub fn div_assign_element_wise(&mut self, rhs: Rhs)[src]

pub fn rem_assign_element_wise(&mut self, rhs: Rhs)[src]

Loading content...

Implementors

impl<S: BaseNum> ElementWise<Point1<S>> for Point1<S>[src]

impl<S: BaseNum> ElementWise<Point2<S>> for Point2<S>[src]

impl<S: BaseNum> ElementWise<Point3<S>> for Point3<S>[src]

impl<S: BaseNum> ElementWise<Vector1<S>> for Vector1<S>[src]

impl<S: BaseNum> ElementWise<Vector2<S>> for Vector2<S>[src]

impl<S: BaseNum> ElementWise<Vector3<S>> for Vector3<S>[src]

impl<S: BaseNum> ElementWise<Vector4<S>> for Vector4<S>[src]

impl<S: BaseNum> ElementWise<S> for Point1<S>[src]

impl<S: BaseNum> ElementWise<S> for Point2<S>[src]

impl<S: BaseNum> ElementWise<S> for Point3<S>[src]

impl<S: BaseNum> ElementWise<S> for Vector1<S>[src]

impl<S: BaseNum> ElementWise<S> for Vector2<S>[src]

impl<S: BaseNum> ElementWise<S> for Vector3<S>[src]

impl<S: BaseNum> ElementWise<S> for Vector4<S>[src]

Loading content...