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