dot()
Purpose
Find the dot product of two vectors
Description
Calculate the dot product (the scalar value from multiplication) of two vectors
Syntax
scalar = dot( vector1, vector2 )
Arguments
vector1 The first vector (x,y,z)
vector2 The second vector (x,y,z)
scalar The resulting scalar value
Example
vector1 = { 2, 3, 4 }
vector2 = { 5, 6, 7 }
scalar = dot( vector1, vector2 )
print( scalar )
update()
sleep( 3 )
Associated Commands