{-# LANGUAGE BlockArguments #-}{-# LANGUAGE DataKinds #-}{-# LANGUAGE FlexibleInstances #-}{-# LANGUAGE MultiParamTypeClasses #-}{-# OPTIONS_GHC -Wno-orphans #-}module Geomancy.Swizzle.IVec.Up () whereimport GHC.Records (HasField(..))import Geomancy.IVec2 (IVec2, withIVec2)import Geomancy.IVec3 (IVec3, ivec3, withIVec3)import Geomancy.IVec4 (IVec4, ivec4)instance HasField "xxx" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x _ -> ivec3 x x xinstance HasField "xxy" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec3 x x yinstance HasField "xyx" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec3 x y xinstance HasField "xyy" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec3 x y yinstance HasField "yxx" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec3 y x xinstance HasField "yxy" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec3 y x yinstance HasField "yyx" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec3 y y xinstance HasField "yyy" IVec2 IVec3 where {-# INLINE getField #-} getField v = withIVec2 v \_ y -> ivec3 y y yinstance HasField "xxxx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x _ -> ivec4 x x x xinstance HasField "xxxy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x x x yinstance HasField "xxyx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x x y xinstance HasField "xxyy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x x y yinstance HasField "xyxx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x y x xinstance HasField "xyxy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x y x yinstance HasField "xyyx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x y y xinstance HasField "xyyy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 x y y yinstance HasField "yxxx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y x x xinstance HasField "yxxy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y x x yinstance HasField "yxyx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y x y xinstance HasField "yxyy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y x y yinstance HasField "yyxx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y y x xinstance HasField "yyxy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y y x yinstance HasField "yyyx" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \x y -> ivec4 y y y xinstance HasField "yyyy" IVec2 IVec4 where {-# INLINE getField #-} getField v = withIVec2 v \_ y -> ivec4 y y y yinstance HasField "xxxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ _ -> ivec4 x x x xinstance HasField "xxxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x x x yinstance HasField "xxxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x x x zinstance HasField "xxyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x x y xinstance HasField "xxyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x x y yinstance HasField "xxyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x x y zinstance HasField "xxzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x x z xinstance HasField "xxzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x x z yinstance HasField "xxzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x x z zinstance HasField "xyxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x y x xinstance HasField "xyxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x y x yinstance HasField "xyxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x y x zinstance HasField "xyyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x y y xinstance HasField "xyyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 x y y yinstance HasField "xyyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x y y zinstance HasField "xyzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x y z xinstance HasField "xyzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x y z yinstance HasField "xyzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x y z zinstance HasField "xzxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x z x xinstance HasField "xzxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x z x yinstance HasField "xzxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x z x zinstance HasField "xzyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x z y xinstance HasField "xzyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x z y yinstance HasField "xzyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x z y zinstance HasField "xzzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x z z xinstance HasField "xzzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 x z z yinstance HasField "xzzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 x z z zinstance HasField "yxxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y x x xinstance HasField "yxxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y x x yinstance HasField "yxxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y x x zinstance HasField "yxyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y x y xinstance HasField "yxyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y x y yinstance HasField "yxyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y x y zinstance HasField "yxzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y x z xinstance HasField "yxzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y x z yinstance HasField "yxzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y x z zinstance HasField "yyxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y y x xinstance HasField "yyxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y y x yinstance HasField "yyxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y y x zinstance HasField "yyyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y _ -> ivec4 y y y xinstance HasField "yyyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y _ -> ivec4 y y y yinstance HasField "yyyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y y y zinstance HasField "yyzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y y z xinstance HasField "yyzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y y z yinstance HasField "yyzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y y z zinstance HasField "yzxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y z x xinstance HasField "yzxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y z x yinstance HasField "yzxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y z x zinstance HasField "yzyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y z y xinstance HasField "yzyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y z y yinstance HasField "yzyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y z y zinstance HasField "yzzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 y z z xinstance HasField "yzzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y z z yinstance HasField "yzzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 y z z zinstance HasField "zxxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z x x xinstance HasField "zxxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z x x yinstance HasField "zxxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z x x zinstance HasField "zxyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z x y xinstance HasField "zxyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z x y yinstance HasField "zxyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z x y zinstance HasField "zxzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z x z xinstance HasField "zxzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z x z yinstance HasField "zxzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z x z zinstance HasField "zyxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z y x xinstance HasField "zyxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z y x yinstance HasField "zyxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z y x zinstance HasField "zyyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z y y xinstance HasField "zyyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z y y yinstance HasField "zyyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z y y zinstance HasField "zyzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z y z xinstance HasField "zyzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z y z yinstance HasField "zyzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z y z zinstance HasField "zzxx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z z x xinstance HasField "zzxy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z z x yinstance HasField "zzxz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z z x zinstance HasField "zzyx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x y z -> ivec4 z z y xinstance HasField "zzyy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z z y yinstance HasField "zzyz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z z y zinstance HasField "zzzx" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \x _ z -> ivec4 z z z xinstance HasField "zzzy" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ y z -> ivec4 z z z yinstance HasField "zzzz" IVec3 IVec4 where {-# INLINE getField #-} getField v = withIVec3 v \_ _ z -> ivec4 z z z z