packages feed

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

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