Class Sphere
- All Implemented Interfaces:
Serializable
Represents a 3D sphere mark.
This class extends MarkWithPositionAndSingleRadius
to provide functionality specific
to spherical marks in 3D space.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.anchoranalysis.mpp.mark.conic.MarkWithPositionAndSingleRadius
box, boxAllRegions, equalsDeep, getBoundRadius, getRadius, isPointInside, numberRegions, quickOverlap, radiusForRegion, radiusForRegionSquared, scale, setRadius, strMarks
Methods inherited from class org.anchoranalysis.mpp.mark.MarkWithPosition
centerPoint, getPosition, positionString, setPosition
Methods inherited from class org.anchoranalysis.mpp.mark.Mark
deriveObject, equalsID, getIdentifier, identifier, setId
-
Constructor Details
-
Sphere
Creates a sphere with a radius within particular bounds.- Parameters:
boundRadius
- the bound for the sphere's radius
-
Sphere
Copy constructor.- Parameters:
source
- the Sphere to copy from
-
Sphere
public Sphere()
-
-
Method Details
-
getName
Description copied from class:Mark
Returns the name of this mark type. -
volume
public double volume(int regionID) Description copied from class:Mark
Calculates the volume of a specific region of the mark. -
toString
-
duplicate
Description copied from class:Mark
Creates a duplicate of this mark. -
numberDimensions
public int numberDimensions()Description copied from class:Mark
Returns the number of dimensions of this mark.- Specified by:
numberDimensions
in classMark
- Returns:
- the number of dimensions
-