Small dimension check fix for swizzling.

This commit is contained in:
sebcrozet 2018-11-23 06:41:10 +01:00
parent accdd51faf
commit f972d1dd7e
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ impl_swizzle!(
where U2: xz() -> Vector2[0, 2];
where U1: yx() -> Vector2[1, 0];
where U1: yy() -> Vector2[1, 1];
where U1: yz() -> Vector2[1, 2];
where U2: yz() -> Vector2[1, 2];
where U2: zx() -> Vector2[2, 0];
where U2: zy() -> Vector2[2, 1];
where U2: zz() -> Vector2[2, 2];

View File

@ -26,7 +26,7 @@ impl_swizzle!(
where U2: xz() -> Point2[0, 2];
where U1: yx() -> Point2[1, 0];
where U1: yy() -> Point2[1, 1];
where U1: yz() -> Point2[1, 2];
where U2: yz() -> Point2[1, 2];
where U2: zx() -> Point2[2, 0];
where U2: zy() -> Point2[2, 1];
where U2: zz() -> Point2[2, 2];