Migrate more doors to lerp
This commit is contained in:
@@ -7,6 +7,9 @@ import Geometry
|
||||
shiftPointBy :: Point2A -> Point2 -> Point2
|
||||
shiftPointBy (pos, rot) !p = pos +.+ rotateV rot p
|
||||
|
||||
compP2A :: Point2A -> Point2A -> Point2A
|
||||
compP2A (p1,r1) (p2,r2) = (p1 +.+ rotateV r1 p2, r1 + r2)
|
||||
|
||||
invShiftPointBy :: (Point2, Float) -> Point2 -> Point2
|
||||
invShiftPointBy (p1, r) p2 = rotateV (- r) $ p2 -.- p1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user