Vector.angleBetween(v1, v2)

Static function. Calculates the angle between two vectors. Is meant to be called “static” i.e. Vector.angleBetween(v1, v2);

Type: function

Parameter(s):

  • v1 {Vector}:

    The first vector.

  • v2 {Vector}:

    The second vector.

Returns:

  • {Number}:

    The angle.