20 Setting Up Transformation Matrices

20 Q3Matrix4x4_SetScale

You can use the Q3Matrix4x4_SetScale function to configure a 4-by-4 scaling transformation matrix.

TQ3Matrix4x4 *Q3Matrix4x4_SetScale (
TQ3Matrix4x4 *matrix4x4, 
float xScale, 
float yScale, 
float zScale);
matrix4x4 A 4-by-4 matrix.
xScale The desired amount of scaling along the x coordinate axis.
yScale The desired amount of scaling along the y coordinate axis.
zScale The desired amount of scaling along the z coordinate axis.

DESCRIPTION


The Q3Matrix4x4_SetScale function returns, as its function result and in the matrix4x4 parameter, a scaling matrix that scales an object by the amount xScale along the x coordinate axis, by the amount yScale along the y coordinate axis, and by the amount zScale along the z coordinate axis.

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