Record Class BoundingBox
java.lang.Object
java.lang.Record
dev.hardwood.metadata.BoundingBox
- Record Components:
xmin- x coordinate of bottom-left vertexxmax- x coordinate of top-right vertexymin- y coordinate of bottom-left vertexymax- y coordinate of top-right vertexzmin- minimum height of bounded volume, ornullif absentzmax- maximum height of bounded volume, ornullif absentmmin- minimum of a value in 4th dimension, ornullif absentmmax- maximum of a value in 4th dimension, ornullif absent
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox(double xmin, double xmax, double ymin, double ymax, Double zmin, Double zmax, Double mmin, Double mmax) Creates an instance of aBoundingBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mmax()Returns the value of themmaxrecord component.mmin()Returns the value of themminrecord component.final StringtoString()Returns a string representation of this record class.doublexmax()Returns the value of thexmaxrecord component.doublexmin()Returns the value of thexminrecord component.doubleymax()Returns the value of theymaxrecord component.doubleymin()Returns the value of theyminrecord component.zmax()Returns the value of thezmaxrecord component.zmin()Returns the value of thezminrecord component.
-
Constructor Details
-
BoundingBox
public BoundingBox(double xmin, double xmax, double ymin, double ymax, Double zmin, Double zmax, Double mmin, Double mmax) Creates an instance of aBoundingBoxrecord class.- Parameters:
xmin- the value for thexminrecord componentxmax- the value for thexmaxrecord componentymin- the value for theyminrecord componentymax- the value for theymaxrecord componentzmin- the value for thezminrecord componentzmax- the value for thezmaxrecord componentmmin- the value for themminrecord componentmmax- the value for themmaxrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
xmin
-
xmax
-
ymin
-
ymax
-
zmin
-
zmax
-
mmin
-
mmax
-