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