<-Back

Function: Angle-Between-Vectors

angle-between-vectors number

Returns the angle in radians between vector-1 and vector-2. If no reference-vector given, the smallest possible angle is returned. If a reference-vector is given, computes according to the right-hand rule. If -ve is given, returns a negative number for angle if it really is negative according to the right-hand rule.

arguments:
vector-1 3D Vector
vector-2 3D Vector
optional arguments:
reference-vector 3D Vector, Default Value: nil
keyword arguments:
epsilon Number, Default Value: *zero-epsilon*
Determines how small of an angle is considered to be zero
-ve Boolean, Default Value: nil

<-Back