20 Scaling Vectors

20 Q3Vector3D_Scale

You can use the Q3Vector3D_Scale function to scale a three-dimensional vector.

TQ3Vector3D *Q3Vector3D_Scale (
const TQ3Vector3D *vector3D, 
float scalar, 
TQ3Vector3D *result);
vector3D A three-dimensional vector.
scalar A floating-point number.
result On exit, a three-dimensional vector that is the result of multiplying each of its components by the value of the scalar parameter.

DESCRIPTION


The Q3Vector3D_Scale function returns, as its function result and in the result parameter, the three-dimensional vector that is the result of multiplying each of the components of the vector vector3D by the value of the scalar parameter. Note that on entry the result parameter can be the same as the vector3D 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