next up previous contents index
Next: dkinfo Up: Reference Previous: ksplines   Contents   Index

perimeter

$ \bigcirc$Name


perimeter Compute the perimeter of a curve (Dlist)




$ \bigcirc$Command Synopsis


perimeter [-m min] [-M max] in .



-m min (screen output) : to get the minimum distance between 2 successive points

-M max (screen output) : to get the maximum distance between 2 successive points

in : input Dlist

. (screen output) : result (double)




$ \bigcirc$Function Summary


double perimeter (in , min , max )

Dlist in ;

double *min , *max ;




$ \bigcirc$Description


This module computes the perimeter of a curve P1P2...Pn (Dlist), closed or not, by

perimeter(P1P2...Pn) = $\displaystyle \sum_{{k=1}}^{{n-1}}$| Pk+1 - Pk|.

With the -m and M options, it also computes

$\displaystyle \min_{k}^{}$| Pk+1 - Pk|        and        $\displaystyle \max_{k}^{}$| Pk+1 - Pk|.




$ \bigcirc$See Also


dkinfo.


$ \bigcirc$Version 1.0


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


$ \bigcirc$Author


Lionel Moisan






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