Closed Yang123321 closed 5 years ago
windowToWorld :: Camera -> (Float,Float) -> V2 Float windowToWorld (Camera cx cs) (x,y) = V2 x y ^/ cs - cx
is should be :
windowToWorld :: Camera -> (Float,Float) -> V2 Float windowToWorld (Camera cx cs) (x,y) = V2 x y ^/ cs + cx
Fixed by #39
windowToWorld :: Camera -> (Float,Float) -> V2 Float windowToWorld (Camera cx cs) (x,y) = V2 x y ^/ cs - cx
is should be :
windowToWorld :: Camera -> (Float,Float) -> V2 Float windowToWorld (Camera cx cs) (x,y) = V2 x y ^/ cs + cx