Processing math: 100%

sknano.core.geometric_regions.Ellipsoid

class sknano.core.geometric_regions.Ellipsoid(center=None, rx=1, ry=1, rz=1)[source][source]

Geometric3DRegion for an ellipsoid.

New in version 0.3.0.

Represents an axis-aligned ellipsoid centered at the point (cx,cy,cz) with semi-axes lengths rx,ry,rz.

Parameters:

center : array_like or Point

3-tuple of floats or an instance of the Point class specifying the center point coordinates (x,y,z) of the axis-aligned Ellipsoid with semi-axes lengths rx, ry, rz.

rx, ry, rz : float, optional

Semi-axes lengths rx,ry,rz of axis-aligned Ellipsoid centered at center.

Notes

Ellipsoid represents the axis-aligned ellipsoid:

{{x,y,z}R3|(xcxrx)2+(ycyry)2+(zczrz)21}

Calling Ellipsoid with no parameters is equivalent to Ellipsoid(center=[0, 0, 0], rx=1, ry=1, rz=1).

Attributes

center Ellipsoid center point (cx,cy,cz).
centroid Alias for center.
fmtstr Format string.
measure Alias for volume, which is the measure of a 3D geometric region.
rx Length of semi-axis rx.
ry Length of semi-axis ry.
rz Length of semi-axis rz.
volume Ellipsoid volume, V=43πrxryrz.

Methods

center_centroid() Center centroid on origin.
contains(point) Test region membership of point in Ellipsoid.
rotate([angle, axis, anchor_point, ...]) Rotate GeometricRegion points and vectors.
todict() Returns a dict of the Ellipsoid constructor parameters.
translate(t[, fix_anchor_points]) Translate GeometricRegion points and vectors by Vector t.