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

Method getRotationCenter

ij/src/main/java/ij/gui/Roi.java:2723–2732  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2721 }
2722
2723 public FloatPolygon getRotationCenter() {
2724 FloatPolygon p = new FloatPolygon();
2725 Rectangle2D r = getFloatBounds();
2726 if (Double.isNaN(xcenter)) {
2727 xcenter = r.getX()+r.getWidth()/2.0;
2728 ycenter = r.getY()+r.getHeight()/2.0;
2729 }
2730 p.addPoint(xcenter,ycenter);
2731 return p;
2732 }
2733
2734 public void setRotationCenter(double x, double y) {
2735 xcenter = x;

Callers 3

runMethod · 0.95
rotateMethod · 0.95
rotateMethod · 0.45

Calls 6

getFloatBoundsMethod · 0.95
addPointMethod · 0.95
getXMethod · 0.65
getYMethod · 0.65
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected