HyperWorks Tools

::hwat::math::GetVector

::hwat::math::GetVector

Previous topic Next topic No expanding text in this topic  

::hwat::math::GetVector

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

NAME

::hwat::math::GetVector - Finds the i, j, and k components of a vector given the coordinates of the start and end point.

 

SYNTAX

::hwat::math::GetVector {startpnt} {endpnt}

 

ARGUMENTS

startpnt

Tcl list of x, y, and z coordinates of the tail node of the vector.

endpnt

Tcl list of x, y, and z coordinates of the tip node of the vector.

 

RETURNS

Returns a Tcl list of the i, j and k components of the resultant vector if successful, {} otherwise.

 

EXAMPLE

::hwat::math::GetVector [list 0.0 0.0 0.0] [list 10.0 8.5 7.0]

 

Comments

This is an N-dimensional operation.  Both lists must be the same length, and the return list will also be the same length.

 

See also

Math Functions