Returns, as a Polygon, the two points that define this line.
()
| 488 | |
| 489 | /** Returns, as a Polygon, the two points that define this line. */ |
| 490 | public Polygon getPoints() { |
| 491 | Polygon p = new Polygon(); |
| 492 | p.addPoint((int)Math.round(x1d), (int)Math.round(y1d)); |
| 493 | p.addPoint((int)Math.round(x2d), (int)Math.round(y2d)); |
| 494 | return p; |
| 495 | } |
| 496 | |
| 497 | /** Returns, as a FloatPolygon, the two points that define this line. */ |
| 498 | public FloatPolygon getFloatPoints() { |