use crate::{I64Vec2, I64Vec3, I64Vec4, Vec2Swizzles};
impl Vec2Swizzles for I64Vec2 {
type Vec3 = I64Vec3;
type Vec4 = I64Vec4;
#[inline]
#[must_use]
fn xx(self) -> I64Vec2 {
I64Vec2 {
x: self.x,
y: self.x,
}
}
#[inline]
#[must_use]
fn xy(self) -> I64Vec2 {
I64Vec2 {
x: self.x,
y: self.y,
}
}
#[inline]
#[must_use]
fn yx(self) -> I64Vec2 {
I64Vec2 {
x: self.y,
y: self.x,
}
}
#[inline]
#[must_use]
fn yy(self) -> I64Vec2 {
I64Vec2 {
x: self.y,
y: self.y,
}
}
#[inline]
#[must_use]
fn xxx(self) -> I64Vec3 {
I64Vec3 {
x: self.x,
y: self.x,
z: self.x,
}
}
#[inline]
#[must_use]
fn xxy(self) -> I64Vec3 {
I64Vec3 {
x: self.x,
y: self.x,
z: self.y,
}
}
#[inline]
#[must_use]
fn xyx(self) -> I64Vec3 {
I64Vec3 {
x: self.x,
y: self.y,
z: self.x,
}
}
#[inline]
#[must_use]
fn xyy(self) -> I64Vec3 {
I64Vec3 {
x: self.x,
y: self.y,
z: self.y,
}
}
#[inline]
#[must_use]
fn yxx(self) -> I64Vec3 {
I64Vec3 {
x: self.y,
y: self.x,
z: self.x,
}
}
#[inline]
#[must_use]
fn yxy(self) -> I64Vec3 {
I64Vec3 {
x: self.y,
y: self.x,
z: self.y,
}
}
#[inline]
#[must_use]
fn yyx(self) -> I64Vec3 {
I64Vec3 {
x: self.y,
y: self.y,
z: self.x,
}
}
#[inline]
#[must_use]
fn yyy(self) -> I64Vec3 {
I64Vec3 {
x: self.y,
y: self.y,
z: self.y,
}
}
#[inline]
#[must_use]
fn xxxx(self) -> I64Vec4 {
I64Vec4::new(self.x, self.x, self.x, self.x)
}
#[inline]
#[must_use]
fn xxxy(self) -> I64Vec4 {
I64Vec4::new(self.x, self.x, self.x, self.y)
}
#[inline]
#[must_use]
fn xxyx(self) -> I64Vec4 {
I64Vec4::new(self.x, self.x, self.y, self.x)
}
#[inline]
#[must_use]
fn xxyy(self) -> I64Vec4 {
I64Vec4::new(self.x, self.x, self.y, self.y)
}
#[inline]
#[must_use]
fn xyxx(self) -> I64Vec4 {
I64Vec4::new(self.x, self.y, self.x, self.x)
}
#[inline]
#[must_use]
fn xyxy(self) -> I64Vec4 {
I64Vec4::new(self.x, self.y, self.x, self.y)
}
#[inline]
#[must_use]
fn xyyx(self) -> I64Vec4 {
I64Vec4::new(self.x, self.y, self.y, self.x)
}
#[inline]
#[must_use]
fn xyyy(self) -> I64Vec4 {
I64Vec4::new(self.x, self.y, self.y, self.y)
}
#[inline]
#[must_use]
fn yxxx(self) -> I64Vec4 {
I64Vec4::new(self.y, self.x, self.x, self.x)
}
#[inline]
#[must_use]
fn yxxy(self) -> I64Vec4 {
I64Vec4::new(self.y, self.x, self.x, self.y)
}
#[inline]
#[must_use]
fn yxyx(self) -> I64Vec4 {
I64Vec4::new(self.y, self.x, self.y, self.x)
}
#[inline]
#[must_use]
fn yxyy(self) -> I64Vec4 {
I64Vec4::new(self.y, self.x, self.y, self.y)
}
#[inline]
#[must_use]
fn yyxx(self) -> I64Vec4 {
I64Vec4::new(self.y, self.y, self.x, self.x)
}
#[inline]
#[must_use]
fn yyxy(self) -> I64Vec4 {
I64Vec4::new(self.y, self.y, self.x, self.y)
}
#[inline]
#[must_use]
fn yyyx(self) -> I64Vec4 {
I64Vec4::new(self.y, self.y, self.y, self.x)
}
#[inline]
#[must_use]
fn yyyy(self) -> I64Vec4 {
I64Vec4::new(self.y, self.y, self.y, self.y)
}
}