Returns the floating point dot product of two vectors. The dot product takes two vectors as arguments and returns a scalar value.
float dot(vector vector1, vector vector2)
If the dot product returns 0, the two vectors are perpendicular.
vector1 is one of the vectors.
vector2 is the other vector.
dot(<<1,2,-2>>,<<3,0,1>>)
Returns 1. The dot product of this example is (1 * 3) + (2*0) + (-2*1), which equals 1.