Trait rapier2d::utils::WSign[][src]

pub trait WSign<Rhs>: Sized {
    fn copy_sign_to(self, to: Rhs) -> Rhs;
}

Trait to copy the sign of each component of one scalar/vector/matrix to another.

Required methods

fn copy_sign_to(self, to: Rhs) -> Rhs[src]

Copy the sign of each component of self to the corresponding component of to.

Loading content...

Implementations on Foreign Types

impl<N: Scalar + Copy + WSign<N>> WSign<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>> for Vector2<N>[src]

impl<N: Scalar + Copy + WSign<N>> WSign<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>> for Vector3<N>[src]

Loading content...

Implementors

impl WSign<f32> for Real[src]

impl WSign<AutoSimd<[f32; 4]>> for SimdReal[src]

impl<N: Scalar + Copy + WSign<N>> WSign<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 2_usize, 1_usize>>> for N[src]

impl<N: Scalar + Copy + WSign<N>> WSign<Matrix<N, Const<{_: usize}>, Const<1_usize>, ArrayStorage<N, 3_usize, 1_usize>>> for N[src]

Loading content...