Package uk.ac.starlink.tfcat
Class Bbox
java.lang.Object
uk.ac.starlink.tfcat.Bbox
Represents a TFCat bbox (bounding box) structure.
- Since:
- 9 Feb 2022
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the maximum spectral value.doubleReturns the minimum spectral value.doubleReturns the maximum time value.doubleReturns the minimum time value.booleanIndicates whether a given position is within this bounding box.toString()
-
Constructor Details
-
Bbox
public Bbox(double tmin, double smin, double tmax, double smax) Constructor.- Parameters:
tmin- minimum time valuesmin- minimum spectral valuetmax- maximum time valuesmax- maximum spectral value
-
-
Method Details
-
getTimeMin
public double getTimeMin()Returns the minimum time value.- Returns:
- minimum value for the time coordinate
-
getSpectralMin
public double getSpectralMin()Returns the minimum spectral value.- Returns:
- minimum value for the spectral coordinate
-
getTimeMax
public double getTimeMax()Returns the maximum time value.- Returns:
- maximum value for the time coordinate
-
getSpectralMax
public double getSpectralMax()Returns the maximum spectral value.- Returns:
- maximum value for the spectral coordinate
-
isInside
Indicates whether a given position is within this bounding box.- Parameters:
pos- position- Returns:
- true iff position is within or on the edge of this box
-
toString
-