next up previous contents index
Next: fkcrop Up: Reference Previous: fkbox   Contents   Index

fkcenter

$ \bigcirc$Name


fkcenter Compute the center of mass (barycenter) of a set of Fcurves




$ \bigcirc$Command Synopsis


fkcenter in . .



in : input (Fcurves)

. (screen output) : barycenter (x coordinate)

. (screen output) : barycenter (y coordinate)




$ \bigcirc$Function Summary


void fkcenter (cs , xg , yg )

Fcurves cs ;

float *xg , *yg ;




$ \bigcirc$Description


This module computes the barycenter all points encountered in a set of Fcurves. This barycenter is given by

(xG, yG) = $\displaystyle {\frac{{1}}{{n}}}$$\displaystyle \sum_{{i=1}}^{n}$$\displaystyle {\frac{{1}}{{n_i}}}$$\displaystyle \sum_{{j=1}}^{{n_i}}$(xi, j, yi, j),

where j $ \in$ {1,...ni} $ \mapsto$ (xi, j, yi, j) describes the curve number i of the Fcurves structure.




$ \bigcirc$See Also


sr_distance, sr_normalize, sr_signature.


$ \bigcirc$Version 1.2


Last Modification date : Thu Nov 29 20:23:56 2001


$ \bigcirc$Author


Thierry Cohignac, Lionel Moisan






next up previous contents index
Next: fkcrop Up: Reference Previous: fkbox   Contents   Index
mw 2004-05-05