public abstract class AbstractWritableSphere extends AbstractEuclideanSpace implements WritableSphere
WritableSphere
implementations.Modifier and Type | Field and Description |
---|---|
protected double[] |
center |
protected double |
radius |
n
Constructor and Description |
---|
AbstractWritableSphere(double[] center,
double radius)
Creates an n-d sphere.
|
Modifier and Type | Method and Description |
---|---|
RealLocalizableRealPositionable |
center()
Returns the center.
|
protected double |
distancePowered(RealLocalizable l) |
boolean |
equals(Object obj)
Determines whether this superellipsoid describes the same region as
another one.
|
double |
exponent()
Returns the exponent of this superellipsoid
|
int |
hashCode() |
double |
radius()
Returns the radius of this sphere.
|
double |
realMax(int d)
Get the maximum in dimension d.
|
double |
realMin(int d)
Get the minimum in dimension d.
|
double |
semiAxisLength(int d)
Returns the semi-axis length of the superellipsoid in a given dimension d
|
void |
setRadius(double radius)
Sets the radius.
|
void |
setSemiAxisLength(int d,
double length)
Sets the radius of this sphere.
|
numDimensions
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setExponent
equals, hashCode, maskType
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
boundaryType, isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public AbstractWritableSphere(double[] center, double radius)
center
- Point where the sphere is centeredradius
- Radius of the spherepublic double realMin(int d)
RealInterval
realMin
in interface RealInterval
d
- dimensionpublic double realMax(int d)
RealInterval
realMax
in interface RealInterval
d
- dimensionpublic double exponent()
SuperEllipsoid
exponent
in interface SuperEllipsoid
public double semiAxisLength(int d)
SuperEllipsoid
semiAxisLength
in interface SuperEllipsoid
public RealLocalizableRealPositionable center()
center
in interface SuperEllipsoid
center
in interface WritableSuperEllipsoid
public double radius()
Sphere
public void setSemiAxisLength(int d, double length)
setSemiAxisLength
in interface WritableSuperEllipsoid
public void setRadius(double radius)
WritableSphere
setRadius
in interface WritableSphere
public boolean equals(Object obj)
SuperEllipsoid
equals
in interface SuperEllipsoid
equals
in interface MaskPredicate<RealLocalizable>
equals
in class Object
obj
- The superellipsoid to compare with this one.MaskPredicate.equals(Object)
,
SuperEllipsoid.equals(SuperEllipsoid, SuperEllipsoid)
protected double distancePowered(RealLocalizable l)
Copyright © 2015–2022 ImgLib2. All rights reserved.