AC-Vector-2.3.2: Efficient geometric vectors and transformations.

Safe HaskellSafe
LanguageHaskell98

Data.Vector.V3

Description

3-dimensional vectors with vector arithmetic.

Synopsis

Documentation

vcross :: Vector3 -> Vector3 -> Vector3 #

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).