HM_vectorfromthreepoints()
Calculates a vector defined by three points.
Syntax
int HM_vectorfromthreepoints(HM_vectorpointer vector, double point1[3], double point2[3], double point3[3]);
Type
HyperMesh hmlib Function
Description
Calculates a vector defined by three points.
Inputs
- vector
- A pointer to a vector where the result of the cross product should be stored.
- point1[3]
- A point in space; base of resultant vector.
- point2[3]
- A point in space.
- point3[3]
- A point in space.
Example
If successful, the function returns zero; otherwise, nonzero.
This function calculates the vector formed by crossing the vector formed from *point1 to *point2, and the vector formed from *point1 to *point3.
Errors
None.