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