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

Method scaleY

ij/src/main/java/ij/gui/Plot.java:1996–1999  ·  view source on GitHub ↗

Converts calibrated coordinates to integer pixel coordinates.

(double y)

Source from the content-addressed store, hash-verified

1994
1995 /** Converts calibrated coordinates to integer pixel coordinates. */
1996 private int scaleY(double y) {
1997 double yPxl = scaleYtoPxl(y);
1998 return pxlToInt(yPxl);
1999 }
2000
2001 /** Converts a double-precision pixel coordinate value 'v' to integer,
2002 * with overflow handling: Limits are +/-Integer.MAX_VALUE/2.

Callers 5

scaleYWithOverflowMethod · 0.95
drawPlotObjectMethod · 0.95
drawFloatPolylineMethod · 0.95

Calls 2

scaleYtoPxlMethod · 0.95
pxlToIntMethod · 0.95

Tested by

no test coverage detected