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

Method getRawLength

ij/src/main/java/ij/gui/Line.java:454–456  ·  view source on GitHub ↗

Returns the length of this line in pixels.

()

Source from the content-addressed store, hash-verified

452
453 /** Returns the length of this line in pixels. */
454 public double getRawLength() {
455 return Math.sqrt(sqr(x2d-x1d)+sqr(y2d-y1d));
456 }
457
458 /** Returns the pixel values along this line.
459 * The line roi must have an associated ImagePlus.

Callers 3

saveLineInfoMethod · 0.95
getLengthMethod · 0.95
runMethod · 0.80

Calls 2

sqrtMethod · 0.45
sqrMethod · 0.45

Tested by

no test coverage detected