20 Determining Point Affine Combinations
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 thepoints2D
array.result
On exit, the point that is the affine combination of the points inpoints2D
having the weights in theweights
array.
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
.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker