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

Method length

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

Returns the length of a vector with components dx, dy

(double dx, double dy)

Source from the content-addressed store, hash-verified

2896
2897 /** Returns the length of a vector with components dx, dy */
2898 static double length(double dx, double dy) {
2899 return Math.sqrt(dx*dx+dy*dy);
2900 }
2901
2902 /** Used by PolygonRoi, Line, ShapeRoi etc. */
2903 static double sqr(double x) {return x*x; }

Callers 1

convertLineToAreaMethod · 0.95

Calls 1

sqrtMethod · 0.45

Tested by

no test coverage detected