/** * Returns the center of this area * * @return */ public CCVector2f center() { CCVector2f d = new CCVector2f(0.0f, 0.0f); int c = 0; for (CCConnectedPixelRow myPixelRow : _myConnectedPixelRows) { d.add(myPixelRow.center()); c++; } return d.scale(1f / c); }