MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getPoints

Method getPoints

ij/src/main/java/ij/gui/Line.java:490–495  ·  view source on GitHub ↗

Returns, as a Polygon, the two points that define this line.

()

Source from the content-addressed store, hash-verified

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() {

Callers 1

listRoisMethod · 0.80

Calls 2

addPointMethod · 0.45
roundMethod · 0.45

Tested by

no test coverage detected