Refactor crPos to be a V3

This commit is contained in:
2025-10-10 13:47:31 +01:00
parent 98ece551c7
commit 49fb982877
58 changed files with 375 additions and 307 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
{-# LANGUAGE LambdaCase #-}
module Dodge.WorldPos where
import Dodge.Base.You
import Dodge.Data.World
import Geometry
import Control.Lens
import Linear
doWorldPos :: WdP2 -> World -> Point2
doWorldPos wp2 = case wp2 of
doWorldPos = \case
WdP2Const p -> const p
WdYouPos -> _crPos . you
WdYouPos -> (^. crPos . _xy) . you