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) |
double |
exponent()
Returns the exponent of this superellipsoid
|
int |
hashCode() |
double |
radius()
Returns the radius of this sphere.
|
double |
realMax(int d) |
double |
realMin(int 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.
|
numDimensionsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitsetExponentand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorboundaryType, isAll, knownConstantpublic AbstractWritableSphere(double[] center,
double radius)
center - Point where the sphere is centeredradius - Radius of the spherepublic double realMin(int d)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface RealIntervalpublic double exponent()
SuperEllipsoidexponent in interface SuperEllipsoidpublic double semiAxisLength(int d)
SuperEllipsoidsemiAxisLength in interface SuperEllipsoidpublic RealLocalizableRealPositionable center()
center in interface SuperEllipsoidcenter in interface WritableSuperEllipsoidpublic double radius()
Spherepublic void setSemiAxisLength(int d,
double length)
setSemiAxisLength in interface WritableSuperEllipsoidpublic void setRadius(double radius)
WritableSpheresetRadius in interface WritableSphereprotected double distancePowered(RealLocalizable l)
Copyright © 2009–2018 ImgLib2. All rights reserved.