Calculates the dot product of two 3-D vectors.
rhinoscriptsyntax.VectorDotProduct ( vector1, vector2 )
rhinoscript.pointvector.VectorDotProduct ( vector1, vector2 )
vector1 |
Required. List of 3 numbers or Vector3d. The first 3-D vector. |
vector2 |
Required. List of 3 numbers or Vector3d. The second 3-D vector. |
Double |
The resulting dot product, if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
vector1 = [1,0,0]
vector2 = [0,1,0]
dblDotProduct = rs.VectorDotProduct(vector1, vector2)
print dblDotProduct