::hwat::math::AverageVectorComponents

This function will average the vector components.

Syntax

::hwat::math::AverageVectorComponents {normlist}

Arguments

normlist
Tcl list of lists of i, j, and k components of the vectors to be averaged, of the form {{i1 j1 k1} {i2 j2 k2} ...}.

Returns

Success
A Tcl list containing the average of the vectors.
Failure
{}

Example

::hwat::math::AverageVectorComponents [[list 1.0 7.5 3.0] [list  2.55 3.7 7.3] [list  2.4 9.77 3.44]]