20 Setting Up Transformation Matrices

20 Q3Matrix3x3_SetTranslate

You can use the Q3Matrix3x3_SetTranslate function to configure a 3-by-3 translation transformation matrix.

TQ3Matrix3x3 *Q3Matrix3x3_SetTranslate (
TQ3Matrix3x3 *matrix3x3, 
float xTrans, 
float yTrans);
matrix3x3 A 3-by-3 matrix.
xTrans The desired amount of translation along the x coordinate axis.
yTrans The desired amount of translation along the y coordinate axis.

DESCRIPTION


The Q3Matrix3x3_SetTranslate function returns, as its function result and in the matrix3x3 parameter, a transformation matrix that translates an object by the amount xTrans along the x coordinate axis and by the amount yTrans along the y 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