Class Sphere
Object
org.anchoranalysis.mpp.mark.Mark
org.anchoranalysis.mpp.mark.MarkWithPosition
org.anchoranalysis.mpp.mark.conic.MarkWithPositionAndSingleRadius
org.anchoranalysis.mpp.mark.conic.Sphere
- All Implemented Interfaces:
Serializable
public class Sphere extends MarkWithPositionAndSingleRadius
Represents a 3D sphere mark.
This class extends MarkWithPositionAndSingleRadius to provide functionality specific
to spherical marks in 3D space.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Markduplicate()Creates a duplicate of this mark.StringgetName()Returns the name of this mark type.intnumberDimensions()Returns the number of dimensions of this mark.StringtoString()doublevolume(int regionID)Calculates the volume of a specific region of the mark.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
-
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
-