public abstract class AbstractWritableEllipsoid extends AbstractWritableSuperEllipsoid implements WritableEllipsoid
WritableEllipsoid
implementations.center, exponent, semiAxisLengths
n
Constructor and Description |
---|
AbstractWritableEllipsoid(double[] center,
double[] semiAxisLengths)
Creates an n-d ellipsoid, where n is determined by the length of the
smaller array.
|
Modifier and Type | Method and Description |
---|---|
protected double |
distancePowered(RealLocalizable l)
Computes the unit distance squared between a given location and the
center of the ellipsoid.
|
void |
setExponent(double exponent)
Ellipsoids have exponents of 2.
|
center, equals, exponent, hashCode, realMax, realMin, semiAxisLength, setSemiAxisLength
numDimensions
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
center, setSemiAxisLength
equals, equals, exponent, hashCode, maskType, semiAxisLength
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
boundaryType, isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMin
public AbstractWritableEllipsoid(double[] center, double[] semiAxisLengths)
center
- Array containing the positions in each dimension at which the
ellipsoid is centered. A copy of this array is stored.semiAxisLengths
- Array containing the lengths of the semi-axes in each
dimension. A copy of this array is stored.public void setExponent(double exponent)
setExponent
in interface WritableEllipsoid
setExponent
in interface WritableSuperEllipsoid
setExponent
in class AbstractWritableSuperEllipsoid
UnsupportedOperationException
- Ellipsoids, by definition, have an exponent of 2protected double distancePowered(RealLocalizable l)
distancePowered
in class AbstractWritableSuperEllipsoid
l
- location to checkCopyright © 2015–2022 ImgLib2. All rights reserved.