sknano.core.geometric_regions.Cuboid.centroid

Cuboid.centroid

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

Computed as the 3D Point \((c_x, c_y, c_z)\) with coordinates:

\[c_x = \frac{x_{\mathrm{min}} + x_{\mathrm{max}}}{2}\]\[c_y = \frac{y_{\mathrm{min}} + y_{\mathrm{max}}}{2}\]\[c_z = \frac{z_{\mathrm{min}} + z_{\mathrm{max}}}{2}\]
Returns:

Point

3D Point of centroid.