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