Processing math: 100%

sknano.core.geometric_regions.Rectangle.centroid

Rectangle.centroid

Rectangle centroid, (cx,cy).

Computed as the 2D Point (cx,cy) with coordinates:

cx=xmin+xmax2cy=ymin+ymax2
Returns:

Point

2D Point of centroid.