sknano.utils.geometric_shapes.Sphere¶
-
class
sknano.utils.geometric_shapes.Sphere(center=None, r=None)[source][source]¶ Abstract data structure representing a sphere.
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 theSpherecenter.r : float, optional
Sphere radius \(r\)
Attributes
centercentroidrvolumeMethods
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()