Trait rapier2d::utils::SimdSign

source ·
pub trait SimdSign<Rhs>: Sized {
    // Required method
    fn copy_sign_to(self, to: Rhs) -> Rhs;
}
Expand description

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

Required Methods§

source

fn copy_sign_to(self, to: Rhs) -> Rhs

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<N: Scalar + Copy + SimdSign<N>> SimdSign<Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>> for Vector2<N>

source§

fn copy_sign_to(self, to: Vector2<N>) -> Vector2<N>

source§

impl<N: Scalar + Copy + SimdSign<N>> SimdSign<Matrix<N, Const<3>, Const<1>, ArrayStorage<N, 3, 1>>> for Vector3<N>

source§

fn copy_sign_to(self, to: Vector3<N>) -> Vector3<N>

Implementors§

source§

impl SimdSign<f32> for Real

source§

impl SimdSign<AutoSimd<[f32; 4]>> for SimdReal

source§

impl<N: Scalar + Copy + SimdSign<N>> SimdSign<Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>> for N

source§

impl<N: Scalar + Copy + SimdSign<N>> SimdSign<Matrix<N, Const<3>, Const<1>, ArrayStorage<N, 3, 1>>> for N