sknano.core.geometric_regions.Parallelepiped.centroid¶
-
Parallelepiped.
centroid
¶ Parallelepiped centroid, \((c_x, c_y, c_z)\).
Computed as the 3D point \((c_x, c_y, c_z)\) with coordinates:
\[c_x = o_x + \frac{u_x + v_x + w_x}{2}\]\[c_y = o_y + \frac{u_y + v_y + w_y}{2}\]\[c_z = o_z + \frac{u_z + v_z + w_z}{2}\]where \((o_x, o_y, o_z)\), \((u_x, u_y, u_z)\), \((v_x, v_y, v_z)\), and \((w_x, w_y, w_z)\) are the \((x, y, z)\) coordinates of the origin \(o\) and \((x, y, z)\) components of the direction vectors \(\mathbf{u}\), \(\mathbf{v}\), and \(\mathbf{w}\), respectively.
Returns: Point
3D
Point
of centroid.