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.
|
numDimensionsclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitsetExponentequals, hashCode, maskTypeand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorboundaryType, isAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic AbstractWritableSphere(double[] center,
double radius)
center - Point where the sphere is centeredradius - Radius of the spherepublic double realMin(int d)
RealIntervalrealMin in interface RealIntervald - dimensionpublic double realMax(int d)
RealIntervalrealMax in interface RealIntervald - dimensionpublic 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 WritableSpherepublic boolean equals(Object obj)
SuperEllipsoidequals in interface SuperEllipsoidequals in interface MaskPredicate<RealLocalizable>equals in class Objectobj - 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.