Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
3-dimensional vectors with vector arithmetic.
Documentation
Instances
BasicVector Vector3 Source # | |
Defined in Data.Vector.V3 | |
Vector Vector3 Source # | |
Defined in Data.Vector.V3 | |
Num Vector3 Source # | |
Fractional Vector3 Source # | |
Show Vector3 Source # | |
Eq Vector3 Source # | |
vcross :: Vector3 -> Vector3 -> Vector3 Source #
Take the cross product of two 3D vectors. This produces a new 3D vector that is perpendicular to the plane of the first two vectors, and who's length is equal to the sine of the angle between those vectors multiplied by their lengths.
Note that a `vcross` b = negate (b `vcross` a)
.