| 1 | // Generated by swizzlegen. Do not edit. |
| 2 | |
| 3 | use super::Vec2Swizzles; |
| 4 | use crate::{IVec2, IVec3, IVec4}; |
| 5 | |
| 6 | impl Vec2Swizzles for IVec2 { |
| 7 | type Vec3 = IVec3; |
| 8 | type Vec4 = IVec4; |
| 9 | |
| 10 | #[inline] |
| 11 | fn xxxx(self) -> IVec4 { |
| 12 | IVec4::new(self.x, self.x, self.x, self.x) |
| 13 | } |
| 14 | #[inline] |
| 15 | fn xxxy(self) -> IVec4 { |
| 16 | IVec4::new(self.x, self.x, self.x, self.y) |
| 17 | } |
| 18 | #[inline] |
| 19 | fn xxyx(self) -> IVec4 { |
| 20 | IVec4::new(self.x, self.x, self.y, self.x) |
| 21 | } |
| 22 | #[inline] |
| 23 | fn xxyy(self) -> IVec4 { |
| 24 | IVec4::new(self.x, self.x, self.y, self.y) |
| 25 | } |
| 26 | #[inline] |
| 27 | fn xyxx(self) -> IVec4 { |
| 28 | IVec4::new(self.x, self.y, self.x, self.x) |
| 29 | } |
| 30 | #[inline] |
| 31 | fn xyxy(self) -> IVec4 { |
| 32 | IVec4::new(self.x, self.y, self.x, self.y) |
| 33 | } |
| 34 | #[inline] |
| 35 | fn xyyx(self) -> IVec4 { |
| 36 | IVec4::new(self.x, self.y, self.y, self.x) |
| 37 | } |
| 38 | #[inline] |
| 39 | fn xyyy(self) -> IVec4 { |
| 40 | IVec4::new(self.x, self.y, self.y, self.y) |
| 41 | } |
| 42 | #[inline] |
| 43 | fn yxxx(self) -> IVec4 { |
| 44 | IVec4::new(self.y, self.x, self.x, self.x) |
| 45 | } |
| 46 | #[inline] |
| 47 | fn yxxy(self) -> IVec4 { |
| 48 | IVec4::new(self.y, self.x, self.x, self.y) |
| 49 | } |
| 50 | #[inline] |
| 51 | fn yxyx(self) -> IVec4 { |
| 52 | IVec4::new(self.y, self.x, self.y, self.x) |
| 53 | } |
| 54 | #[inline] |
| 55 | fn yxyy(self) -> IVec4 { |
| 56 | IVec4::new(self.y, self.x, self.y, self.y) |
| 57 | } |
| 58 | #[inline] |
| 59 | fn yyxx(self) -> IVec4 { |
| 60 | IVec4::new(self.y, self.y, self.x, self.x) |
| 61 | } |
| 62 | #[inline] |
| 63 | fn yyxy(self) -> IVec4 { |
| 64 | IVec4::new(self.y, self.y, self.x, self.y) |
| 65 | } |
| 66 | #[inline] |
| 67 | fn yyyx(self) -> IVec4 { |
| 68 | IVec4::new(self.y, self.y, self.y, self.x) |
| 69 | } |
| 70 | #[inline] |
| 71 | fn yyyy(self) -> IVec4 { |
| 72 | IVec4::new(self.y, self.y, self.y, self.y) |
| 73 | } |
| 74 | #[inline] |
| 75 | fn xxx(self) -> IVec3 { |
| 76 | IVec3::new(self.x, self.x, self.x) |
| 77 | } |
| 78 | #[inline] |
| 79 | fn xxy(self) -> IVec3 { |
| 80 | IVec3::new(self.x, self.x, self.y) |
| 81 | } |
| 82 | #[inline] |
| 83 | fn xyx(self) -> IVec3 { |
| 84 | IVec3::new(self.x, self.y, self.x) |
| 85 | } |
| 86 | #[inline] |
| 87 | fn xyy(self) -> IVec3 { |
| 88 | IVec3::new(self.x, self.y, self.y) |
| 89 | } |
| 90 | #[inline] |
| 91 | fn yxx(self) -> IVec3 { |
| 92 | IVec3::new(self.y, self.x, self.x) |
| 93 | } |
| 94 | #[inline] |
| 95 | fn yxy(self) -> IVec3 { |
| 96 | IVec3::new(self.y, self.x, self.y) |
| 97 | } |
| 98 | #[inline] |
| 99 | fn yyx(self) -> IVec3 { |
| 100 | IVec3::new(self.y, self.y, self.x) |
| 101 | } |
| 102 | #[inline] |
| 103 | fn yyy(self) -> IVec3 { |
| 104 | IVec3::new(self.y, self.y, self.y) |
| 105 | } |
| 106 | #[inline] |
| 107 | fn xx(self) -> Self { |
| 108 | Self::new(self.x, self.x) |
| 109 | } |
| 110 | #[inline] |
| 111 | fn yx(self) -> Self { |
| 112 | Self::new(self.y, self.x) |
| 113 | } |
| 114 | #[inline] |
| 115 | fn yy(self) -> Self { |
| 116 | Self::new(self.y, self.y) |
| 117 | } |
| 118 | } |