Improve speed of polygon rendering by folding tree type
This commit is contained in:
@@ -13,6 +13,7 @@ import Data.Maybe
|
||||
import Control.Applicative
|
||||
|
||||
zeroZ :: Point2 -> Point3
|
||||
{-# INLINE zeroZ #-}
|
||||
zeroZ (x,y) = (x,y,0)
|
||||
|
||||
infixl 6 +.+, -.-
|
||||
|
||||
Reference in New Issue
Block a user