This commit is contained in:
2025-10-11 11:46:39 +01:00
parent 4949d98789
commit 75e93dfcd5
2 changed files with 39 additions and 33 deletions
-6
View File
@@ -173,12 +173,6 @@ magV :: Point2 -> Float
{-# INLINE magV #-}
magV (V2 x y) = sqrt $ x ^ (2 :: Int) + y ^ (2 :: Int)
{- | Magnitude of the cross product of two vectors.
Identical to detV.
-}
crossV :: Point2 -> Point2 -> Float
crossV (V2 ax ay) (V2 bx by) = ax * by - ay * bx
-- | TO CHECK Orthographic projection of one vector onto another.
projV :: Point2 -> Point2 -> Point2
projV fromv onv