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

r : float, optional

Sphere radius \(r\)

Attributes

center
centroid
r
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()