Remove RenderType datatype
This commit is contained in:
@@ -13,12 +13,12 @@ infixl 7 *.*
|
||||
{- | 2D coordinate-wise addition. -}
|
||||
(+.+) :: Point2 -> Point2 -> Point2
|
||||
{-# INLINE (+.+) #-}
|
||||
(+.+) = (+)
|
||||
--(x1, y1) +.+ (x2, y2) =
|
||||
-- let
|
||||
-- !x = x1 + x2
|
||||
-- !y = y1 + y2
|
||||
-- in (x, y)
|
||||
--(+.+) = -- (+)
|
||||
V2 x1 y1 +.+ V2 x2 y2 =
|
||||
let
|
||||
!x = x1 + x2
|
||||
!y = y1 + y2
|
||||
in V2 x y
|
||||
{- | 2D coordinate-wise subtraction. -}
|
||||
(-.-) :: Point2 -> Point2 -> Point2
|
||||
{-# INLINE (-.-) #-}
|
||||
|
||||
Reference in New Issue
Block a user