sknano.core.geometric_regions.Cylinder.centroid

Cylinder.centroid

Cylinder centroid, \((c_x, c_y, c_z)\).

Computed as:

\[c_x = \frac{x_1 + x_2}{2}\]\[c_y = \frac{y_1 + y_2}{2}\]\[c_z = \frac{z_1 + z_2}{2}\]