Searched defs:centroid (Results 1 - 3 of 3) sorted by relevance
/inkscape/src/2geom/ |
H A D | geom.cpp | 355 * polyCentroid: Calculates the centroid (xCentroid, yCentroid) and area of a polygon, given its 363 2 if area = 0 (and the centroid is undefined). 368 int centroid(std::vector<Geom::Point> const &p, Geom::Point& centroid, double &area) { argument 381 centroid = centroid_tmp / (3 * atmp);
|
H A D | sbasis-geometric.cpp | 7 * unit_vector, curvature, and centroid. Most are built on top of unit_vector, which takes an 511 \param centroid on return contains the centroid of the shape 514 This approach uses green's theorem to compute the area and centroid using integrals. For curved shapes this is much faster than converting to polyline. Note that without an uncross operation the output is not the absolute area. 518 2 if area is zero, meaning centroid is meaningless. 521 unsigned Geom::centroid(Piecewise<D2<SBasis> > const &p, Point& centroid, double &area) { argument 540 centroid = centroid_tmp / (3 * atmp);
|
/inkscape/share/extensions/ |
H A D | gcodetools.py | 2764 def centroid(self): member in class:Polygon 3166 c = surface.centroid() 3168 c1 = poly.centroid() 3536 c = surface.centroid() 3537 c1 = poly.centroid() 3539 c = surface.centroid() 3540 c1 = poly.centroid()
|
Completed in 40 milliseconds