20 Adding and Subtracting Vectors
Q3Vector3D_Subtract
function to subtract a three-dimensional vector from a three-dimensional vector.
TQ3Vector3D *Q3Vector3D_Subtract ( const TQ3Vector3D *v1, const TQ3Vector3D *v2, TQ3Vector3D *result);v1
A three-dimensional vector.v2
A three-dimensional vector.result
On exit, the result of subtractingv2
fromv1
.
Q3Vector3D_Subtract
function returns, as its function result and in the result
parameter, the three-dimensional vector that is the result of subtracting vector v2
from vector v1
. Note that on entry the result
parameter can be the same as either v1
or v2
(or both).
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker