Allow for multiple distortions at once
This commit is contained in:
@@ -3,14 +3,21 @@
|
||||
|
||||
module Dodge.Data.Distortion where
|
||||
|
||||
import Control.Lens
|
||||
import Geometry
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
|
||||
data Distortion = RadialDistortion
|
||||
Point2 Point2 Point2
|
||||
Point2 Point2 Point2
|
||||
Int
|
||||
{ _rdPos :: Point2
|
||||
, _rdDist1 :: Point2
|
||||
, _rdDist2 :: Point2
|
||||
, _rdT1 :: Point2
|
||||
, _rdT2 :: Point2
|
||||
, _rdT3 :: Point2
|
||||
, _rdTime :: Int
|
||||
}
|
||||
deriving (Eq, Ord, Show, Read) --Generic, Flat)
|
||||
|
||||
makeLenses ''Distortion
|
||||
deriveJSON defaultOptions ''Distortion
|
||||
|
||||
Reference in New Issue
Block a user