sknano.utils.geometric_shapes.Cube¶
-
class
sknano.utils.geometric_shapes.Cube(center=None, a=None)[source][source]¶ Abstract data structure representing a cube.
New in version 0.3.0.
Parameters: center : sequence, optional
Either a 3-tuple of floats or an instance of the
Pointclass specifying the \((x,y,z)\) coordinates of the cube center.a : float, optional
length of edge
Attributes
acentercentroidvolumeMethods
contains_point(point)rotate([angle, rot_axis, anchor_point, ...])Rotate GeometricRegionPoints and Vectors.translate(t[, fix_anchor_points])Translate GeometricRegions Points and Vectors byVectort.update_region_limits()