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 Point class specifying the \((x,y,z)\) coordinates of the cube center.

a : float, optional

length of edge

Attributes

a
center
centroid
volume

Methods

contains_point(point)
rotate([angle, rot_axis, anchor_point, ...]) Rotate GeometricRegion Points and Vectors.
translate(t[, fix_anchor_points]) Translate GeometricRegions Points and Vectors by Vector t.
update_region_limits()