packages feed

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

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