Record Class RectF
java.lang.Object
java.lang.Record
dev.pfaff.altargui.pathfinder.RectF
-
Constructor Summary
ConstructorsConstructorDescriptionRectF
(float originX, float originY, float width, float height) Creates an instance of aRectF
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static RectF
fromCorners
(float originX, float originY, float lowerRightX, float lowerRightY) final int
hashCode()
Returns a hash code value for this object.float
height()
Returns the value of theheight
record component.float
originX()
Returns the value of theoriginX
record component.float
originY()
Returns the value of theoriginY
record component.final String
toString()
Returns a string representation of this record class.float
width()
Returns the value of thewidth
record component.
-
Constructor Details
-
RectF
public RectF(float originX, float originY, float width, float height) Creates an instance of aRectF
record class.- Parameters:
originX
- the value for theoriginX
record componentoriginY
- the value for theoriginY
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
record component
-
-
Method Details
-
fromCorners
-
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. All components in this record class are compared with thecompare
method from their corresponding wrapper classes. -
originX
public float originX()Returns the value of theoriginX
record component.- Returns:
- the value of the
originX
record component
-
originY
public float originY()Returns the value of theoriginY
record component.- Returns:
- the value of the
originY
record component
-
width
public float width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public float height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-