From f972d1dd7e208033b9815ae14eea08134e201cbc Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Fri, 23 Nov 2018 06:41:10 +0100 Subject: [PATCH] Small dimension check fix for swizzling. --- src/base/swizzle.rs | 2 +- src/geometry/swizzle.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/swizzle.rs b/src/base/swizzle.rs index e1908e35..c57b2cd9 100644 --- a/src/base/swizzle.rs +++ b/src/base/swizzle.rs @@ -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]; diff --git a/src/geometry/swizzle.rs b/src/geometry/swizzle.rs index d471f32e..a4f45649 100644 --- a/src/geometry/swizzle.rs +++ b/src/geometry/swizzle.rs @@ -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];