sknano.core.geometric_regions.Parallelogram.centroid

Parallelogram.centroid

Paralleogram centroid, \((c_x, c_y)\).

Computed as the 2D point \((c_x, c_y)\) with coordinates:

\[c_x = o_x + \frac{u_x + v_x}{2}\]\[c_y = o_y + \frac{u_y + v_y}{2}\]

where \((o_x, o_y)\), \((u_x, u_y)\), and \((v_x, v_y)\) are the \((x, y)\) coordinates of the origin \(o\) and \((x, y)\) components of the direction vectors \(\mathbf{u}\) and \(\mathbf{v}\), respectively.

Returns:

Point

2D Point of centroid.