Loading [MathJax]/jax/output/HTML-CSS/jax.js

sknano.core.geometric_regions.Parallelepiped.centroid

Parallelepiped.centroid

Parallelepiped centroid, (cx,cy,cz).

Computed as the 3D point (cx,cy,cz) with coordinates:

cx=ox+ux+vx+wx2cy=oy+uy+vy+wy2cz=oz+uz+vz+wz2

where (ox,oy,oz), (ux,uy,uz), (vx,vy,vz), and (wx,wy,wz) are the (x,y,z) coordinates of the origin o and (x,y,z) components of the direction vectors u, v, and w, respectively.

Returns:

Point

3D Point of centroid.