HyperWorks Tools

::hwat::math::VectorDotProduct

::hwat::math::VectorDotProduct

Previous topic Next topic No expanding text in this topic  

::hwat::math::VectorDotProduct

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::math::VectorDotProduct - Finds the dot product of two vectors.

 

SYNTAX

::hwat::math::VectorDotProduct {vector1} {vector2}

 

ARGUMENTS

vector1

Tcl list of components for vector1.

vector2

Tcl list of components for vector2.

 

RETURNS

Returns the dot product if successful, "{}" otherwise.

 

EXAMPLE

HWAT::MATH::VectorDotProduct [list 1.0 7.5 3.0] [list 2.0 3.78 5.69]

 

COMMENTS

This is an N-dimensional operation.  Both lists must be the same length.

 

See also

Math Functions