Package cz.fidentis.analyst.engines.face
Record Class CuttingPlanesUtils.BoundingBox2D
java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.face.CuttingPlanesUtils.BoundingBox2D
- Record Components:
scale
- of 2D projectionoffsetX
- of drawings in 2D projectionoffsetY
- of drawings in 2D projection
- Enclosing class:
CuttingPlanesUtils
public static record CuttingPlanesUtils.BoundingBox2D(double scale, double offsetX, double offsetY)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox2D
(double scale, double offsetX, double offsetY) Creates an instance of aBoundingBox2D
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
offsetX()
Returns the value of theoffsetX
record component.double
offsetY()
Returns the value of theoffsetY
record component.double
scale()
Returns the value of thescale
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BoundingBox2D
public BoundingBox2D(double scale, double offsetX, double offsetY) Creates an instance of aBoundingBox2D
record class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared with '=='. -
scale
public double scale()Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-
offsetX
public double offsetX()Returns the value of theoffsetX
record component.- Returns:
- the value of the
offsetX
record component
-
offsetY
public double offsetY()Returns the value of theoffsetY
record component.- Returns:
- the value of the
offsetY
record component
-