::hwat::math::GetVector - Finds the i, j, and k components of a vector given the coordinates of the start and end point.
::hwat::math::GetVector {startpnt} {endpnt}
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 a Tcl list of the i, j and k components of the resultant vector if successful, {} otherwise.
::hwat::math::GetVector [list 0.0 0.0 0.0] [list 10.0 8.5 7.0]
This is an N-dimensional operation. Both lists must be the same length, and the return list will also be the same length.