Class Line
java.lang.Object
io.r2dbc.postgresql.codec.Line
Value object that maps to the
line datatype in Postgres.
Lines are represented by the linear equation Ax + By + C = 0.
Uses double to represent the coordinates.
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegetA()doublegetB()doublegetC()inthashCode()static Lineof(double a, double b, double c) static Lineof(double x1, double y1, double x2, double y2) Create a newLinedefined by two points.static LineCreate a newLinedefined by two points.toString()
-
Method Details
-
of
-
of
-
of
-
getA
public double getA() -
getB
public double getB() -
getC
public double getC() -
equals
-
hashCode
-
toString
-