public class Line2D extends java.lang.Object implements Shape
Modifier and Type | Class and Description |
---|---|
static class |
Line2D.Double |
Modifier and Type | Field and Description |
---|---|
double |
x1 |
double |
x2 |
double |
y1 |
double |
y2 |
Constructor and Description |
---|
Line2D() |
Line2D(double x1,
double y1,
double x2,
double y2) |
Line2D(Point2D p1,
Point2D p2) |
Modifier and Type | Method and Description |
---|---|
Point2D |
getP1() |
Point2D |
getP2() |
double |
getX1() |
double |
getX2() |
double |
getY1() |
double |
getY2() |