#![allow(clippy::useless_conversion)]
use crate::f32::ffi::{Vec3A, Vec4};
use crate::{Vec2, Vec3Swizzles};
impl Vec3Swizzles for Vec3A {
type Vec2 = Vec2;
type Vec4 = Vec4;
#[inline]
fn xx(self) -> Vec2 {
Vec2 {
x: self.x,
y: self.x,
}
}
#[inline]
fn xy(self) -> Vec2 {
Vec2 {
x: self.x,
y: self.y,
}
}
#[inline]
fn xz(self) -> Vec2 {
Vec2 {
x: self.x,
y: self.z,
}
}
#[inline]
fn yx(self) -> Vec2 {
Vec2 {
x: self.y,
y: self.x,
}
}
#[inline]
fn yy(self) -> Vec2 {
Vec2 {
x: self.y,
y: self.y,
}
}
#[inline]
fn yz(self) -> Vec2 {
Vec2 {
x: self.y,
y: self.z,
}
}
#[inline]
fn zx(self) -> Vec2 {
Vec2 {
x: self.z,
y: self.x,
}
}
#[inline]
fn zy(self) -> Vec2 {
Vec2 {
x: self.z,
y: self.y,
}
}
#[inline]
fn zz(self) -> Vec2 {
Vec2 {
x: self.z,
y: self.z,
}
}
#[inline]
fn xxx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xxx().into()
}
#[inline]
fn xxy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xxy().into()
}
#[inline]
fn xxz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xxz().into()
}
#[inline]
fn xyx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xyx().into()
}
#[inline]
fn xyy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xyy().into()
}
#[inline]
fn xyz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xyz().into()
}
#[inline]
fn xzx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xzx().into()
}
#[inline]
fn xzy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xzy().into()
}
#[inline]
fn xzz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).xzz().into()
}
#[inline]
fn yxx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yxx().into()
}
#[inline]
fn yxy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yxy().into()
}
#[inline]
fn yxz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yxz().into()
}
#[inline]
fn yyx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yyx().into()
}
#[inline]
fn yyy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yyy().into()
}
#[inline]
fn yyz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yyz().into()
}
#[inline]
fn yzx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yzx().into()
}
#[inline]
fn yzy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yzy().into()
}
#[inline]
fn yzz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).yzz().into()
}
#[inline]
fn zxx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zxx().into()
}
#[inline]
fn zxy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zxy().into()
}
#[inline]
fn zxz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zxz().into()
}
#[inline]
fn zyx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zyx().into()
}
#[inline]
fn zyy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zyy().into()
}
#[inline]
fn zyz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zyz().into()
}
#[inline]
fn zzx(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zzx().into()
}
#[inline]
fn zzy(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zzy().into()
}
#[inline]
fn zzz(self) -> Vec3A {
crate::f32::simd_alias::Vec3A::from(self).zzz().into()
}
#[inline]
fn xxxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxxx().into()
}
#[inline]
fn xxxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxxy().into()
}
#[inline]
fn xxxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxxz().into()
}
#[inline]
fn xxyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxyx().into()
}
#[inline]
fn xxyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxyy().into()
}
#[inline]
fn xxyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxyz().into()
}
#[inline]
fn xxzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxzx().into()
}
#[inline]
fn xxzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxzy().into()
}
#[inline]
fn xxzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xxzz().into()
}
#[inline]
fn xyxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyxx().into()
}
#[inline]
fn xyxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyxy().into()
}
#[inline]
fn xyxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyxz().into()
}
#[inline]
fn xyyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyyx().into()
}
#[inline]
fn xyyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyyy().into()
}
#[inline]
fn xyyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyyz().into()
}
#[inline]
fn xyzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyzx().into()
}
#[inline]
fn xyzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyzy().into()
}
#[inline]
fn xyzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xyzz().into()
}
#[inline]
fn xzxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzxx().into()
}
#[inline]
fn xzxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzxy().into()
}
#[inline]
fn xzxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzxz().into()
}
#[inline]
fn xzyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzyx().into()
}
#[inline]
fn xzyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzyy().into()
}
#[inline]
fn xzyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzyz().into()
}
#[inline]
fn xzzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzzx().into()
}
#[inline]
fn xzzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzzy().into()
}
#[inline]
fn xzzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).xzzz().into()
}
#[inline]
fn yxxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxxx().into()
}
#[inline]
fn yxxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxxy().into()
}
#[inline]
fn yxxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxxz().into()
}
#[inline]
fn yxyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxyx().into()
}
#[inline]
fn yxyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxyy().into()
}
#[inline]
fn yxyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxyz().into()
}
#[inline]
fn yxzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxzx().into()
}
#[inline]
fn yxzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxzy().into()
}
#[inline]
fn yxzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yxzz().into()
}
#[inline]
fn yyxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyxx().into()
}
#[inline]
fn yyxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyxy().into()
}
#[inline]
fn yyxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyxz().into()
}
#[inline]
fn yyyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyyx().into()
}
#[inline]
fn yyyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyyy().into()
}
#[inline]
fn yyyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyyz().into()
}
#[inline]
fn yyzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyzx().into()
}
#[inline]
fn yyzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyzy().into()
}
#[inline]
fn yyzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yyzz().into()
}
#[inline]
fn yzxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzxx().into()
}
#[inline]
fn yzxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzxy().into()
}
#[inline]
fn yzxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzxz().into()
}
#[inline]
fn yzyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzyx().into()
}
#[inline]
fn yzyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzyy().into()
}
#[inline]
fn yzyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzyz().into()
}
#[inline]
fn yzzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzzx().into()
}
#[inline]
fn yzzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzzy().into()
}
#[inline]
fn yzzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).yzzz().into()
}
#[inline]
fn zxxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxxx().into()
}
#[inline]
fn zxxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxxy().into()
}
#[inline]
fn zxxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxxz().into()
}
#[inline]
fn zxyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxyx().into()
}
#[inline]
fn zxyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxyy().into()
}
#[inline]
fn zxyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxyz().into()
}
#[inline]
fn zxzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxzx().into()
}
#[inline]
fn zxzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxzy().into()
}
#[inline]
fn zxzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zxzz().into()
}
#[inline]
fn zyxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyxx().into()
}
#[inline]
fn zyxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyxy().into()
}
#[inline]
fn zyxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyxz().into()
}
#[inline]
fn zyyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyyx().into()
}
#[inline]
fn zyyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyyy().into()
}
#[inline]
fn zyyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyyz().into()
}
#[inline]
fn zyzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyzx().into()
}
#[inline]
fn zyzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyzy().into()
}
#[inline]
fn zyzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zyzz().into()
}
#[inline]
fn zzxx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzxx().into()
}
#[inline]
fn zzxy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzxy().into()
}
#[inline]
fn zzxz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzxz().into()
}
#[inline]
fn zzyx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzyx().into()
}
#[inline]
fn zzyy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzyy().into()
}
#[inline]
fn zzyz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzyz().into()
}
#[inline]
fn zzzx(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzzx().into()
}
#[inline]
fn zzzy(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzzy().into()
}
#[inline]
fn zzzz(self) -> Vec4 {
crate::f32::simd_alias::Vec3A::from(self).zzzz().into()
}
}