20 QuickDraw3D Mathematical Utilities

20 Setting Up Transformation Matrices

QuickDraw3D provides routines that you can use to configure matrices to be used as geometric transformations. You must already have allocated the memory for a matrix before calling one of these routines.

All functions operating on 3-by-3 matrices assume that the resulting transform matrices are to be used to transform only homogeneous two-dimensional data types (such as TQ3RationalPoint3D). Similarly, all functions operating on 4-by-4 matrices assume that the resulting transform matrices are to be used to transform only homogeneous three-dimensional data types (such as TQ3RationalPoint4D).

You specify an angle (for example, for Q3Matrix3x3_SetRotateAboutPoint) by passing a value that is interpreted in radians. If you prefer to use degrees, QuickDraw3D provides C language macros that convert radians into degrees.

20 - Q3Matrix3x3_SetTranslate
20 - Q3Matrix3x3_SetScale
20 - Q3Matrix3x3_SetRotateAboutPoint
20 - Q3Matrix4x4_SetTranslate
20 - Q3Matrix4x4_SetScale
20 - Q3Matrix4x4_SetRotateAboutPoint
20 - Q3Matrix4x4_SetRotateAboutAxis
20 - Q3Matrix4x4_SetRotate_X
20 - Q3Matrix4x4_SetRotate_Y
20 - Q3Matrix4x4_SetRotate_Z
20 - Q3Matrix4x4_SetRotate_XYZ
20 - Q3Matrix4x4_SetRotateVectorToVector
20 - Q3Matrix4x4_SetQuaternion

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