Trait na::Swizzles2

source ·
pub trait Swizzles2<T: Scalar> {
    type Swizzle2;

    // Required methods
    fn xy(&self) -> Self::Swizzle2;
    fn yx(&self) -> Self::Swizzle2;
}

Required Associated Types§

Required Methods§

source

fn xy(&self) -> Self::Swizzle2

source

fn yx(&self) -> Self::Swizzle2

Implementors§

source§

impl<T: Scalar> Swizzles2<T> for Point2<T>

§

type Swizzle2 = OPoint<T, Const<2>>

source§

impl<T: Scalar> Swizzles2<T> for Point3<T>

§

type Swizzle2 = OPoint<T, Const<2>>

source§

impl<T: Scalar> Swizzles2<T> for Point4<T>

§

type Swizzle2 = OPoint<T, Const<2>>

source§

impl<T: Scalar> Swizzles2<T> for Point5<T>

§

type Swizzle2 = OPoint<T, Const<2>>

source§

impl<T: Scalar> Swizzles2<T> for Point6<T>

§

type Swizzle2 = OPoint<T, Const<2>>

source§

impl<T: Scalar> Swizzles2<T> for Vector2<T>

§

type Swizzle2 = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

source§

impl<T: Scalar> Swizzles2<T> for Vector3<T>

§

type Swizzle2 = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

source§

impl<T: Scalar> Swizzles2<T> for Vector4<T>

§

type Swizzle2 = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

source§

impl<T: Scalar> Swizzles2<T> for Vector5<T>

§

type Swizzle2 = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

source§

impl<T: Scalar> Swizzles2<T> for Vector6<T>

§

type Swizzle2 = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>