VEC: improve readability

This commit is contained in:
hasufell 2014-12-18 00:33:24 +01:00
parent 1545861e5b
commit 2b15585b41
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -49,10 +49,10 @@ inRange ((xmin, ymin), (xmax, ymax)) (coords -> x :& y)
-- |Get the angle between two vectors.
getAngle :: Vec -> Vec -> Double
getAngle a b =
acos .
flip (/) (vecLength a * vecLength b) .
scalarProd a $
b
acos
. flip (/) (vecLength a * vecLength b)
. scalarProd a
$ b
-- |Get the length of a vector.