20 Adding and Subtracting Vectors

20 Q3Vector2D_Subtract

You can use the Q3Vector2D_Subtract function to subtract a two-dimensional vector from a two-dimensional vector.

TQ3Vector2D *Q3Vector2D_Subtract (
const TQ3Vector2D *v1, 
const TQ3Vector2D *v2, 
TQ3Vector2D *result);
v1 A two-dimensional vector.
v2 A two-dimensional vector.
result On exit, the result of subtracting v2 from v1.

DESCRIPTION


The Q3Vector2D_Subtract function returns, as its function result and in the result parameter, the two-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).

DESCRIPTION

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker