sknano.utils.geometric_shapes.Spheroid¶
-
class
sknano.utils.geometric_shapes.Spheroid(center=None, a=None, c=None)[source][source]¶ Abstract data structure representing a spheroid.
New in version 0.3.0.
The general spheroid is a quadratic surface with is given in Cartesian coordinates by:
\[\frac{x^2 + y^2}{a^2} + \frac{z^2}{c^2} = 1\]Parameters: center : sequence, optional
Either a 3-tuple of floats or an instance of the
Pointclass specifying the \((x,y,z)\) coordinates of theSpheroidcenter.a, c : float, optional
Semi-axes \(a, c\) of axis-aligned
Spheroidwith symmetry axis along \(z\) axis.Attributes
accentercentroidvolumeMethods
contains_point([point])Check if point is contained within volume of Spheroid.rotate([angle, rot_axis, anchor_point, ...])Rotate GeometricRegionPoints and Vectors.translate(t[, fix_anchor_points])Translate GeometricRegions Points and Vectors byVectort.update_region_limits()