20 Determining Vector Cross Products
Q3Point3D_CrossProductTri
function to determine the cross product of the two vectors defined by three three-dimensional points.
TQ3Vector3D *Q3Point3D_CrossProductTri ( const TQ3Point3D *point1, const TQ3Point3D *point2, const TQ3Point3D *point3, TQ3Vector3D *crossVector);point1
A three-dimensional point.point2
A three-dimensional point.point3
A three-dimensional point.crossVector
On exit, the cross product of the two vectors determined by subtractingpoint2
frompoint1
andpoint3
frompoint1
.
Q3Point3D_CrossProductTri
function returns, as its function result and in the crossVector
parameter, the cross product of the two vectors determined by subtracting point2
from point1
and point3
from point2
.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker