::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
- Success
- Tcl list of the i, j and k components of the resultant vector
- Failure
- {}
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.