20 Determining Point Affine Combinations

20 Q3RationalPoint3D_AffineComb

You can use the Q3RationalPoint3D_AffineComb function to determine the rational three-dimensional point that is the affine combination of an array of points.

TQ3RationalPoint3D *Q3RationalPoint3D_AffineComb (
const TQ3RationalPoint3D *points3D, 
const float *weights, 
unsigned long nPoints, 
TQ3RationalPoint3D *result);
points3D A pointer to an array of rational three-dimensional points.
weights A pointer to an array of weights. The sum of the weights must be 1.0.
nPoints The number of points in the points3D array.
result On exit, the point that is the affine combination of the points in points3D having the weights in the weights array.

DESCRIPTION


The Q3RationalPoint3D_AffineComb function returns, as its function result and in the result parameter, the rational point that is the affine combination of the points in the array points3D having the weights in the array weights.

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