Vector.dot(v, [y], [z])

Calculates the dot product from this vector to another as x, y, and z components or full vector.

Type: function

Parameter(s):

  • v {Vector | Number}:

    Either a full vector or an x component.

  • y {Number} Optional:

    The y component.

  • z {Number} Optional:

    The z component.

Returns:

  • {Number}:

    The dot product.