| Constructor and Description |
|---|
Polygon2D(double startX,
double startY)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y) |
boolean |
isEmpty() |
Polygon2D |
lineTo(double x,
double y)
Add another corner Point to the polygon.
|
String |
toString() |
public Polygon2D(double startX,
double startY)
startX - the x value of the first point.startY - the Y value of the first point.lineTo(double, double)public Polygon2D lineTo(double x, double y)
x - the x value of the corner to be addedy - the y value of the corner to be addedpublic boolean contains(double x,
double y)
public boolean isEmpty()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.