MCPcopy Index your code
hub / github.com/processing/processing / lineLength

Method lineLength

core/src/processing/opengl/LineStroker.java:609–615  ·  view source on GitHub ↗
(long ldx, long ldy)

Source from the content-addressed store, hash-verified

607 }
608
609 long lineLength(long ldx, long ldy) {
610 long ldet = ((long) m00 * m11 - (long) m01 * m10) >> 16;
611 long la = (ldy * m00 - ldx * m10) / ldet;
612 long lb = (ldy * m01 - ldx * m11) / ldet;
613 long llen = (int) LinePath.hypot(la, lb);
614 return llen;
615 }
616
617 private void finish() {
618 if (capStyle == LinePath.CAP_ROUND) {

Callers 1

finishMethod · 0.95

Calls 1

hypotMethod · 0.95

Tested by

no test coverage detected