::hwat::math::VectorNormalize

Given a list of values returns the list after normalization.

Syntax

::hwat::math::VectorNormalize {valuelist} normvalue

Arguments

valuelist
Tcl list of values to normalize.
normvalue
Argument to use for normalization, if you do not want to use the magnitude.
Optional.

Returns

Success
A Tcl list of the normalized values.
Failure
{}

Example

::hwat::math::VectorNormalize [list 1.0 7.5 3.0]