20 Determining Point Affine Combinations

20 Q3Point2D_AffineComb

You can use the Q3Point2D_AffineComb function to determine the two-dimensional point that is the affine combination of an array of points.

TQ3Point2D *Q3Point2D_AffineComb (
const TQ3Point2D *points2D, 
const float *weights, 
unsigned long nPoints, 
TQ3Point2D *result);
points2D A pointer to an array of two-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 points2D array.
result On exit, the point that is the affine combination of the points in points2D having the weights in the weights array.

DESCRIPTION


The Q3Point2D_AffineComb function returns, as its function result and in the result parameter, the point that is the affine combination of the points in the array points2D 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