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, strMarksMethods inherited from class org.anchoranalysis.mpp.mark.MarkWithPosition
centerPoint, getPosition, positionString, setPositionMethods 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:MarkReturns the name of this mark type. -
volume
public double volume(int regionID) Description copied from class:MarkCalculates the volume of a specific region of the mark. -
toString
-
duplicate
Description copied from class:MarkCreates a duplicate of this mark. -
numberDimensions
public int numberDimensions()Description copied from class:MarkReturns the number of dimensions of this mark.- Specified by:
numberDimensionsin classMark- Returns:
- the number of dimensions
-