Returns the length of this line.
()
| 442 | |
| 443 | /** Returns the length of this line. */ |
| 444 | public double getLength() { |
| 445 | if (imp==null || IJ.altKeyDown()) |
| 446 | return getRawLength(); |
| 447 | else { |
| 448 | Calibration cal = imp.getCalibration(); |
| 449 | return Math.sqrt(sqr((x2d-x1d)*cal.pixelWidth) + sqr((y2d-y1d)*cal.pixelHeight)); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | /** Returns the length of this line in pixels. */ |
| 454 | public double getRawLength() { |
no test coverage detected