Navigation: Scripting Reference Manual > Functions & Subroutines > DotProd3D

 

DotProd3D

 

Contact Us: fredsupport@photonengr.com

 

Description

Performs a dot product between two arbitrary vectors and returns the value x1*x2 + y1*y2 + z1*z2.  If the vectors are normalized, the return value is equal to the cosine of the angle between the two vectors.

 

Syntax

dotprod = DotProd3D ( x1, y1, z1, x2, y2, z2 )

 

Parameters

dotprod (Double)

Value of the dot product x1*x2 + y1*y2 + z1*z2.

 

x1 As Double

x-component value of the first vector.

 

y1 As Double

y-component value of the first vector.

 

z1 As Double

z-component value of the first vector.

 

x2 As Double

x-component value of the second vector.

 

y2 As Double

y-component value of the second vector.

 

z2 As Double

z-component value of the second vector.

 

See Also

MatVecMult

MatMatMult

GetLength3D

SetLength3D

 

 

 

 

 

Copyright © Photon Engineering, LLC