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

Method getPolygon

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

If the width of this line is less than or equal to one, returns the starting and ending coordinates as a 2-point Polygon, or, if the width is greater than one, returns an outline of the line as a 4-point Polygon. @see #getFloatPolygon @see #getPoints

()

Source from the content-addressed store, hash-verified

510 * @see #getPoints
511 */
512 public Polygon getPolygon() {
513 FloatPolygon p = getFloatPolygon();
514 return new Polygon(toIntR(p.xpoints), toIntR(p.ypoints), p.npoints);
515 }
516
517 /** If the width of this line is less than or equal to one, returns the
518 * starting and ending coordinates as a 2-point FloatPolygon, or, if

Callers 2

drawPixelsMethod · 0.95
containsMethod · 0.95

Calls 2

getFloatPolygonMethod · 0.95
toIntRMethod · 0.80

Tested by

no test coverage detected