20 QuickDraw3D Mathematical Utilities

20 Converting Dimensions of Points and Vectors

QuickDraw3D provides routines that you can use to convert a point or vector of a given dimension to another dimension. When the given dimension is less than the result dimension, the last component is set to 1.0. When the given dimension is greater than the result dimension, each component in the result structure is set to its corresponding component in the given structure divided by the last component.

You must already have allocated space for the result structure before attempting to convert the dimension of a point or vector.<8bat>s

20 - Q3Point2D_To3D
20 - Q3Point3D_To4D
20 - Q3RationalPoint3D_To2D
20 - Q3RationalPoint4D_To3D
20 - Q3Vector2D_To3D
20 - Q3Vector3D_To2D

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