packages feed

geomancy-0.4.1.0 / src / Geomancy / Swizzle / IVec / Down.hs

{-# LANGUAGE BlockArguments #-}{-# LANGUAGE DataKinds #-}{-# LANGUAGE FlexibleInstances #-}{-# LANGUAGE MultiParamTypeClasses #-}{-# OPTIONS_GHC -Wno-orphans #-}module Geomancy.Swizzle.IVec.Down () whereimport GHC.Records (HasField(..))import Geomancy.IVec2 (IVec2, ivec2)import Geomancy.IVec3 (IVec3, ivec3, withIVec3)import Geomancy.IVec4 (IVec4, withIVec4)instance HasField "xx" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \x _ _ -> ivec2 x xinstance HasField "xy" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \x y _ -> ivec2 x yinstance HasField "xz" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \x _ z -> ivec2 x zinstance HasField "yx" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \x y _ -> ivec2 y xinstance HasField "yy" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \_ y _ -> ivec2 y yinstance HasField "yz" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \_ y z -> ivec2 y zinstance HasField "zx" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \x _ z -> ivec2 z xinstance HasField "zy" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \_ y z -> ivec2 z yinstance HasField "zz" IVec3 IVec2 where  {-# INLINE getField #-}  getField v = withIVec3 v \_ _ z -> ivec2 z zinstance HasField "xx" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ _ -> ivec2 x xinstance HasField "xy" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec2 x yinstance HasField "xz" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec2 x zinstance HasField "xw" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec2 x winstance HasField "yx" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec2 y xinstance HasField "yy" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ _ -> ivec2 y yinstance HasField "yz" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec2 y zinstance HasField "yw" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec2 y winstance HasField "zx" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec2 z xinstance HasField "zy" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec2 z yinstance HasField "zz" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z _ -> ivec2 z zinstance HasField "zw" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec2 z winstance HasField "wx" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec2 w xinstance HasField "wy" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec2 w yinstance HasField "wz" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec2 w zinstance HasField "ww" IVec4 IVec2 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ _ w -> ivec2 w winstance HasField "xxx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ _ -> ivec3 x x xinstance HasField "xxy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec3 x x yinstance HasField "xxz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec3 x x zinstance HasField "xxw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec3 x x winstance HasField "xyx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec3 x y xinstance HasField "xyy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec3 x y yinstance HasField "xyz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y z _ -> ivec3 x y zinstance HasField "xyw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ w -> ivec3 x y winstance HasField "xzx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec3 x z xinstance HasField "xzy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y z _ -> ivec3 x z yinstance HasField "xzz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec3 x z zinstance HasField "xzw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z w -> ivec3 x z winstance HasField "xwx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec3 x w xinstance HasField "xwy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ w -> ivec3 x w yinstance HasField "xwz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z w -> ivec3 x w zinstance HasField "xww" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec3 x w winstance HasField "yxx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec3 y x xinstance HasField "yxy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec3 y x yinstance HasField "yxz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y z _ -> ivec3 y x zinstance HasField "yxw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ w -> ivec3 y x winstance HasField "yyx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ _ -> ivec3 y y xinstance HasField "yyy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ _ -> ivec3 y y yinstance HasField "yyz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec3 y y zinstance HasField "yyw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec3 y y winstance HasField "yzx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y z _ -> ivec3 y z xinstance HasField "yzy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec3 y z yinstance HasField "yzz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec3 y z zinstance HasField "yzw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z w -> ivec3 y z winstance HasField "ywx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ w -> ivec3 y w xinstance HasField "ywy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec3 y w yinstance HasField "ywz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z w -> ivec3 y w zinstance HasField "yww" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec3 y w winstance HasField "zxx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec3 z x xinstance HasField "zxy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y z _ -> ivec3 z x yinstance HasField "zxz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec3 z x zinstance HasField "zxw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z w -> ivec3 z x winstance HasField "zyx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y z _ -> ivec3 z y xinstance HasField "zyy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec3 z y yinstance HasField "zyz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec3 z y zinstance HasField "zyw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z w -> ivec3 z y winstance HasField "zzx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z _ -> ivec3 z z xinstance HasField "zzy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z _ -> ivec3 z z yinstance HasField "zzz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z _ -> ivec3 z z zinstance HasField "zzw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec3 z z winstance HasField "zwx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z w -> ivec3 z w xinstance HasField "zwy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z w -> ivec3 z w yinstance HasField "zwz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec3 z w zinstance HasField "zww" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec3 z w winstance HasField "wxx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec3 w x xinstance HasField "wxy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ w -> ivec3 w x yinstance HasField "wxz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z w -> ivec3 w x zinstance HasField "wxw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec3 w x winstance HasField "wyx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x y _ w -> ivec3 w y xinstance HasField "wyy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec3 w y yinstance HasField "wyz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z w -> ivec3 w y zinstance HasField "wyw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec3 w y winstance HasField "wzx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ z w -> ivec3 w z xinstance HasField "wzy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y z w -> ivec3 w z yinstance HasField "wzz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec3 w z zinstance HasField "wzw" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec3 w z winstance HasField "wwx" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \x _ _ w -> ivec3 w w xinstance HasField "wwy" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ y _ w -> ivec3 w w yinstance HasField "wwz" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ z w -> ivec3 w w zinstance HasField "www" IVec4 IVec3 where  {-# INLINE getField #-}  getField v = withIVec4 v \_ _ _ w -> ivec3 w w w