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

Method getAngle

ij/src/main/java/ij/gui/Roi.java:1952–1954  ·  view source on GitHub ↗

Returns the angle in degrees between the specified line and a horizontal line.

(int x1, int y1, int x2, int y2)

Source from the content-addressed store, hash-verified

1950
1951 /** Returns the angle in degrees between the specified line and a horizontal line. */
1952 public double getAngle(int x1, int y1, int x2, int y2) {
1953 return getFloatAngle(x1, y1, x2, y2);
1954 }
1955
1956 /** Returns the angle in degrees between the specified line and a horizontal line. */
1957 public double getFloatAngle(double x1, double y1, double x2, double y2) {

Callers 2

saveTextRoiMethod · 0.45
moveMethod · 0.45

Calls 1

getFloatAngleMethod · 0.95

Tested by

no test coverage detected