sknano.core.geometric_regions.Triangle.centroid

Triangle.centroid

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

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

\[c_x = \frac{x_1 + x_2 + x_3}{3}\]\[c_y = \frac{y_1 + y_2 + y_3}{3}\]
Returns:

Point

2D Point of centroid.