Record Class Coordinates

java.lang.Object
java.lang.Record
com.storedobject.svg.Coordinates
Record Components:
x1 - The x-coordinate of the top-left corner.
y1 - The y-coordinate of the top-left corner.
x2 - The x-coordinate of the bottom-right corner.
y2 - The y-coordinate of the bottom-right corner.

public record Coordinates(double x1, double y1, double x2, double y2) extends Record
Represents a coordinate system defined by two points (x1, y1) and (x2, y2). The boundary is adjusted to ensure the coordinates reflect a valid rectangular region, where (x1, y1) represent the top-left corner, and (x2, y2) represent the bottom-right corner.
Author:
Syam