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

Method calculateDistance

ij/src/main/java/ij/gui/Plot.java:983–986  ·  view source on GitHub ↗
(double x1, double y1, double x2, double y2)

Source from the content-addressed store, hash-verified

981 }
982
983 @AstroImageJ(reason = "Access widen for Vector Plot saving", modified = true)
984 public static double calculateDistance(double x1, double y1, double x2, double y2) {
985 return java.lang.Math.sqrt((x2 - x1)*(double)(x2 - x1) + (y2 - y1)*(double)(y2 - y1));
986 }
987
988 /** Adds a set of vectors to the plot using double ArrayLists.
989 * Does not support logarithmic axes.

Callers 2

drawPlotObjectMethod · 0.95
drawPlotObjectMethod · 0.95

Calls 1

sqrtMethod · 0.45

Tested by

no test coverage detected