Processing math: 100%

sknano.core.geometric_regions.Parallelogram.centroid

Parallelogram.centroid

Paralleogram centroid, (cx,cy).

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

cx=ox+ux+vx2cy=oy+uy+vy2

where (ox,oy), (ux,uy), and (vx,vy) are the (x,y) coordinates of the origin o and (x,y) components of the direction vectors u and v, respectively.

Returns:

Point

2D Point of centroid.