Returns the length of a vector with components dx, dy
(double dx, double dy)
| 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; } |