7 Creating and Manipulating Translate Transforms
Q3TranslateTransform_New
function to create a new translate transform.
TQ3TransformObject Q3TranslateTransform_New (
const TQ3Vector3D *translate);
translate
A vector whose three fields specify the desired translation along each coordinate axis.
Q3TranslateTransform_New
function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeTranslate
using the data passed in the translate
parameter. The transform translates an object by the values in translate->x
, translate->y
, and translate->z
, respectively. The data you pass in the translate
parameter is copied into internal QuickDraw3D data structures. If QuickDraw3D cannot allocate memory for those structures, Q3TranslateTransform_New
returns the value NULL
.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker