public final class Box extends Object
box datatype in Postgres.
Uses double to represent the coordinates.
public static Box of(Point a, Point b)
Box given parameters points a and b.
Any two opposite corners can be supplied on input, but the values will be reordered as needed to store the upper right and lower left corners, in that order.
a - first cornerb - second cornerBox objectIllegalArgumentException - if a or b is nullpublic static Box of(double ax, double ay, double bx, double by)
Box given parameters ax, ay, bx and by.
Any two opposite corners can be supplied on input, but the values will be reordered as needed to store the upper right and lower left corners, in that order.
public Point getA()
public Point getB()
Copyright © 2024. All rights reserved.