20 Normalizing Vectors

20 Q3Vector2D_Normalize

You can use the Q3Vector2D_Normalize function to normalize a two-dimensional vector.

TQ3Vector2D *Q3Vector2D_Normalize (
const TQ3Vector2D *vector2D, 
TQ3Vector2D *result);
vector2D A two-dimensional vector.
result On exit, the normalized form of the specified vector.

DESCRIPTION


The Q3Vector2D_Normalize function returns, as its function result and in the result parameter, the normalized form of the vector vector2D. Note that on entry the result parameter can be the same as the vector2D parameter.

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