Constructor and Description |
---|
Polygon2D (double startX,
double startY)
Ctor.
|
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.