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 Point

Either a 3-tuple of floats or an instance of the Point class specifying the \((x,y,z)\) coordinates of the Ellipsoid center.

a, b, c : float, optional

Semi-principal axes \(a, b, c\) of axis-aligned Ellipsoid

Attributes

a
b
c
center
centroid
volume

Methods

contains_point(point) Check if point is contained within volume of Ellipsoid.
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()