| Constructor and Description |
|---|
Line2D(double x1,
double y1,
double x2,
double y2)
Ctor.
|
Line2D(Point2D start,
Point2D end)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y) |
Point2D |
intersect(Line2D line) |
boolean |
isEmpty() |
String |
toString() |
public Line2D(Point2D start, Point2D end)
start - the start pointend - the end pointpublic Line2D(double x1,
double y1,
double x2,
double y2)
x1 - the x value of the start pointy1 - the y value of the start pointx2 - the x value of the end pointy2 - the y value of the end pointCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.