::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

Success
The dot product
Failure
{}

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.