bevy_math

Trait Vec3Swizzles

Source
pub trait Vec3Swizzles:
    Sized
    + Copy
    + Clone {
    type Vec2;
    type Vec4;

Show 117 methods // Required methods fn xx(self) -> Self::Vec2; fn xy(self) -> Self::Vec2; fn xz(self) -> Self::Vec2; fn yx(self) -> Self::Vec2; fn yy(self) -> Self::Vec2; fn yz(self) -> Self::Vec2; fn zx(self) -> Self::Vec2; fn zy(self) -> Self::Vec2; fn zz(self) -> Self::Vec2; fn xxx(self) -> Self; fn xxy(self) -> Self; fn xxz(self) -> Self; fn xyx(self) -> Self; fn xyy(self) -> Self; fn xzx(self) -> Self; fn xzy(self) -> Self; fn xzz(self) -> Self; fn yxx(self) -> Self; fn yxy(self) -> Self; fn yxz(self) -> Self; fn yyx(self) -> Self; fn yyy(self) -> Self; fn yyz(self) -> Self; fn yzx(self) -> Self; fn yzy(self) -> Self; fn yzz(self) -> Self; fn zxx(self) -> Self; fn zxy(self) -> Self; fn zxz(self) -> Self; fn zyx(self) -> Self; fn zyy(self) -> Self; fn zyz(self) -> Self; fn zzx(self) -> Self; fn zzy(self) -> Self; fn zzz(self) -> Self; fn xxxx(self) -> Self::Vec4; fn xxxy(self) -> Self::Vec4; fn xxxz(self) -> Self::Vec4; fn xxyx(self) -> Self::Vec4; fn xxyy(self) -> Self::Vec4; fn xxyz(self) -> Self::Vec4; fn xxzx(self) -> Self::Vec4; fn xxzy(self) -> Self::Vec4; fn xxzz(self) -> Self::Vec4; fn xyxx(self) -> Self::Vec4; fn xyxy(self) -> Self::Vec4; fn xyxz(self) -> Self::Vec4; fn xyyx(self) -> Self::Vec4; fn xyyy(self) -> Self::Vec4; fn xyyz(self) -> Self::Vec4; fn xyzx(self) -> Self::Vec4; fn xyzy(self) -> Self::Vec4; fn xyzz(self) -> Self::Vec4; fn xzxx(self) -> Self::Vec4; fn xzxy(self) -> Self::Vec4; fn xzxz(self) -> Self::Vec4; fn xzyx(self) -> Self::Vec4; fn xzyy(self) -> Self::Vec4; fn xzyz(self) -> Self::Vec4; fn xzzx(self) -> Self::Vec4; fn xzzy(self) -> Self::Vec4; fn xzzz(self) -> Self::Vec4; fn yxxx(self) -> Self::Vec4; fn yxxy(self) -> Self::Vec4; fn yxxz(self) -> Self::Vec4; fn yxyx(self) -> Self::Vec4; fn yxyy(self) -> Self::Vec4; fn yxyz(self) -> Self::Vec4; fn yxzx(self) -> Self::Vec4; fn yxzy(self) -> Self::Vec4; fn yxzz(self) -> Self::Vec4; fn yyxx(self) -> Self::Vec4; fn yyxy(self) -> Self::Vec4; fn yyxz(self) -> Self::Vec4; fn yyyx(self) -> Self::Vec4; fn yyyy(self) -> Self::Vec4; fn yyyz(self) -> Self::Vec4; fn yyzx(self) -> Self::Vec4; fn yyzy(self) -> Self::Vec4; fn yyzz(self) -> Self::Vec4; fn yzxx(self) -> Self::Vec4; fn yzxy(self) -> Self::Vec4; fn yzxz(self) -> Self::Vec4; fn yzyx(self) -> Self::Vec4; fn yzyy(self) -> Self::Vec4; fn yzyz(self) -> Self::Vec4; fn yzzx(self) -> Self::Vec4; fn yzzy(self) -> Self::Vec4; fn yzzz(self) -> Self::Vec4; fn zxxx(self) -> Self::Vec4; fn zxxy(self) -> Self::Vec4; fn zxxz(self) -> Self::Vec4; fn zxyx(self) -> Self::Vec4; fn zxyy(self) -> Self::Vec4; fn zxyz(self) -> Self::Vec4; fn zxzx(self) -> Self::Vec4; fn zxzy(self) -> Self::Vec4; fn zxzz(self) -> Self::Vec4; fn zyxx(self) -> Self::Vec4; fn zyxy(self) -> Self::Vec4; fn zyxz(self) -> Self::Vec4; fn zyyx(self) -> Self::Vec4; fn zyyy(self) -> Self::Vec4; fn zyyz(self) -> Self::Vec4; fn zyzx(self) -> Self::Vec4; fn zyzy(self) -> Self::Vec4; fn zyzz(self) -> Self::Vec4; fn zzxx(self) -> Self::Vec4; fn zzxy(self) -> Self::Vec4; fn zzxz(self) -> Self::Vec4; fn zzyx(self) -> Self::Vec4; fn zzyy(self) -> Self::Vec4; fn zzyz(self) -> Self::Vec4; fn zzzx(self) -> Self::Vec4; fn zzzy(self) -> Self::Vec4; fn zzzz(self) -> Self::Vec4; // Provided method fn xyz(self) -> Self { ... }
}

Required Associated Types§

Required Methods§

Source

fn xx(self) -> Self::Vec2

Source

fn xy(self) -> Self::Vec2

Source

fn xz(self) -> Self::Vec2

Source

fn yx(self) -> Self::Vec2

Source

fn yy(self) -> Self::Vec2

Source

fn yz(self) -> Self::Vec2

Source

fn zx(self) -> Self::Vec2

Source

fn zy(self) -> Self::Vec2

Source

fn zz(self) -> Self::Vec2

Source

fn xxx(self) -> Self

Source

fn xxy(self) -> Self

Source

fn xxz(self) -> Self

Source

fn xyx(self) -> Self

Source

fn xyy(self) -> Self

Source

fn xzx(self) -> Self

Source

fn xzy(self) -> Self

Source

fn xzz(self) -> Self

Source

fn yxx(self) -> Self

Source

fn yxy(self) -> Self

Source

fn yxz(self) -> Self

Source

fn yyx(self) -> Self

Source

fn yyy(self) -> Self

Source

fn yyz(self) -> Self

Source

fn yzx(self) -> Self

Source

fn yzy(self) -> Self

Source

fn yzz(self) -> Self

Source

fn zxx(self) -> Self

Source

fn zxy(self) -> Self

Source

fn zxz(self) -> Self

Source

fn zyx(self) -> Self

Source

fn zyy(self) -> Self

Source

fn zyz(self) -> Self

Source

fn zzx(self) -> Self

Source

fn zzy(self) -> Self

Source

fn zzz(self) -> Self

Source

fn xxxx(self) -> Self::Vec4

Source

fn xxxy(self) -> Self::Vec4

Source

fn xxxz(self) -> Self::Vec4

Source

fn xxyx(self) -> Self::Vec4

Source

fn xxyy(self) -> Self::Vec4

Source

fn xxyz(self) -> Self::Vec4

Source

fn xxzx(self) -> Self::Vec4

Source

fn xxzy(self) -> Self::Vec4

Source

fn xxzz(self) -> Self::Vec4

Source

fn xyxx(self) -> Self::Vec4

Source

fn xyxy(self) -> Self::Vec4

Source

fn xyxz(self) -> Self::Vec4

Source

fn xyyx(self) -> Self::Vec4

Source

fn xyyy(self) -> Self::Vec4

Source

fn xyyz(self) -> Self::Vec4

Source

fn xyzx(self) -> Self::Vec4

Source

fn xyzy(self) -> Self::Vec4

Source

fn xyzz(self) -> Self::Vec4

Source

fn xzxx(self) -> Self::Vec4

Source

fn xzxy(self) -> Self::Vec4

Source

fn xzxz(self) -> Self::Vec4

Source

fn xzyx(self) -> Self::Vec4

Source

fn xzyy(self) -> Self::Vec4

Source

fn xzyz(self) -> Self::Vec4

Source

fn xzzx(self) -> Self::Vec4

Source

fn xzzy(self) -> Self::Vec4

Source

fn xzzz(self) -> Self::Vec4

Source

fn yxxx(self) -> Self::Vec4

Source

fn yxxy(self) -> Self::Vec4

Source

fn yxxz(self) -> Self::Vec4

Source

fn yxyx(self) -> Self::Vec4

Source

fn yxyy(self) -> Self::Vec4

Source

fn yxyz(self) -> Self::Vec4

Source

fn yxzx(self) -> Self::Vec4

Source

fn yxzy(self) -> Self::Vec4

Source

fn yxzz(self) -> Self::Vec4

Source

fn yyxx(self) -> Self::Vec4

Source

fn yyxy(self) -> Self::Vec4

Source

fn yyxz(self) -> Self::Vec4

Source

fn yyyx(self) -> Self::Vec4

Source

fn yyyy(self) -> Self::Vec4

Source

fn yyyz(self) -> Self::Vec4

Source

fn yyzx(self) -> Self::Vec4

Source

fn yyzy(self) -> Self::Vec4

Source

fn yyzz(self) -> Self::Vec4

Source

fn yzxx(self) -> Self::Vec4

Source

fn yzxy(self) -> Self::Vec4

Source

fn yzxz(self) -> Self::Vec4

Source

fn yzyx(self) -> Self::Vec4

Source

fn yzyy(self) -> Self::Vec4

Source

fn yzyz(self) -> Self::Vec4

Source

fn yzzx(self) -> Self::Vec4

Source

fn yzzy(self) -> Self::Vec4

Source

fn yzzz(self) -> Self::Vec4

Source

fn zxxx(self) -> Self::Vec4

Source

fn zxxy(self) -> Self::Vec4

Source

fn zxxz(self) -> Self::Vec4

Source

fn zxyx(self) -> Self::Vec4

Source

fn zxyy(self) -> Self::Vec4

Source

fn zxyz(self) -> Self::Vec4

Source

fn zxzx(self) -> Self::Vec4

Source

fn zxzy(self) -> Self::Vec4

Source

fn zxzz(self) -> Self::Vec4

Source

fn zyxx(self) -> Self::Vec4

Source

fn zyxy(self) -> Self::Vec4

Source

fn zyxz(self) -> Self::Vec4

Source

fn zyyx(self) -> Self::Vec4

Source

fn zyyy(self) -> Self::Vec4

Source

fn zyyz(self) -> Self::Vec4

Source

fn zyzx(self) -> Self::Vec4

Source

fn zyzy(self) -> Self::Vec4

Source

fn zyzz(self) -> Self::Vec4

Source

fn zzxx(self) -> Self::Vec4

Source

fn zzxy(self) -> Self::Vec4

Source

fn zzxz(self) -> Self::Vec4

Source

fn zzyx(self) -> Self::Vec4

Source

fn zzyy(self) -> Self::Vec4

Source

fn zzyz(self) -> Self::Vec4

Source

fn zzzx(self) -> Self::Vec4

Source

fn zzzy(self) -> Self::Vec4

Source

fn zzzz(self) -> Self::Vec4

Provided Methods§

Source

fn xyz(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§