bevy_math

Trait Vec2Swizzles

Source
pub trait Vec2Swizzles:
    Sized
    + Copy
    + Clone {
    type Vec3;
    type Vec4;

Show 28 methods // Required methods fn xx(self) -> Self; fn yx(self) -> Self; fn yy(self) -> Self; fn xxx(self) -> Self::Vec3; fn xxy(self) -> Self::Vec3; fn xyx(self) -> Self::Vec3; fn xyy(self) -> Self::Vec3; fn yxx(self) -> Self::Vec3; fn yxy(self) -> Self::Vec3; fn yyx(self) -> Self::Vec3; fn yyy(self) -> Self::Vec3; fn xxxx(self) -> Self::Vec4; fn xxxy(self) -> Self::Vec4; fn xxyx(self) -> Self::Vec4; fn xxyy(self) -> Self::Vec4; fn xyxx(self) -> Self::Vec4; fn xyxy(self) -> Self::Vec4; fn xyyx(self) -> Self::Vec4; fn xyyy(self) -> Self::Vec4; fn yxxx(self) -> Self::Vec4; fn yxxy(self) -> Self::Vec4; fn yxyx(self) -> Self::Vec4; fn yxyy(self) -> Self::Vec4; fn yyxx(self) -> Self::Vec4; fn yyxy(self) -> Self::Vec4; fn yyyx(self) -> Self::Vec4; fn yyyy(self) -> Self::Vec4; // Provided method fn xy(self) -> Self { ... }
}

Required Associated Types§

Required Methods§

Source

fn xx(self) -> Self

Source

fn yx(self) -> Self

Source

fn yy(self) -> Self

Source

fn xxx(self) -> Self::Vec3

Source

fn xxy(self) -> Self::Vec3

Source

fn xyx(self) -> Self::Vec3

Source

fn xyy(self) -> Self::Vec3

Source

fn yxx(self) -> Self::Vec3

Source

fn yxy(self) -> Self::Vec3

Source

fn yyx(self) -> Self::Vec3

Source

fn yyy(self) -> Self::Vec3

Source

fn xxxx(self) -> Self::Vec4

Source

fn xxxy(self) -> Self::Vec4

Source

fn xxyx(self) -> Self::Vec4

Source

fn xxyy(self) -> Self::Vec4

Source

fn xyxx(self) -> Self::Vec4

Source

fn xyxy(self) -> Self::Vec4

Source

fn xyyx(self) -> Self::Vec4

Source

fn xyyy(self) -> Self::Vec4

Source

fn yxxx(self) -> Self::Vec4

Source

fn yxxy(self) -> Self::Vec4

Source

fn yxyx(self) -> Self::Vec4

Source

fn yxyy(self) -> Self::Vec4

Source

fn yyxx(self) -> Self::Vec4

Source

fn yyxy(self) -> Self::Vec4

Source

fn yyyx(self) -> Self::Vec4

Source

fn yyyy(self) -> Self::Vec4

Provided Methods§

Source

fn xy(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§