Description Usage Arguments Value References See Also Examples
Dot (Scalar) Product of two direction vectors in 3D space
1 | Utils.DotProduct(a, b)
|
a |
First direction vector |
b |
Second direction vector |
Scalar value for dot rpdocut. Returns zero if the two inputs are perpendicular or if either are of zero length.
https://en.wikipedia.org/wiki/Dot_product
Other utils: Utils.CrossProduct
,
Utils.UnitVector
,
Utils.VectorLength
1 2 | Utils.DotProduct(c(3,2,1),c(1,2,3)) # [1] 10
Utils.DotProduct(c(1,1,0),c(1,-1,0)) # [1] 0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.