public final class Lseg extends Object
lseg datatype in Postgres.
Uses double to represent the coordinates.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Point |
getP1() |
Point |
getP2() |
int |
hashCode() |
static Lseg |
of(double p1x,
double p1y,
double p2x,
double p2y)
|
static Lseg |
of(Point p1,
Point p2)
|
String |
toString() |
public static Lseg of(Point p1, Point p2)
p1 - first endpointp2 - second endpointLseg objectIllegalArgumentException - if p1 or p2 is nullpublic static Lseg of(double p1x, double p1y, double p2x, double p2y)
public Point getP1()
public Point getP2()
Copyright © 2024. All rights reserved.