From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This function is used to calculate the dot product of two vectors.

The dot product is a number calculated by multiplying the magnitudes of both vectors together, then multiplying that number by cosine of the angle between them.

For normalized vectors, the dot product will be:

   -1 - If the vectors point in the exact opposite direction
   0 - If the vectors are perpendicular
   1 - If the vectors point the same direction

Syntax otherVec);

Required Arguments

  • otherVec: Vector3: The other vector.


  • number The dot product.

See Also