MCPcopy Index your code
hub / github.com/benfry/processing4 / abs

Method abs

core/src/processing/core/PApplet.java:4034–4036  ·  view source on GitHub ↗

Calculates the absolute value (magnitude) of a number. The absolute value of a number is always positive. @webref math:calculation @webBrief Calculates the absolute value (magnitude) of a number @param n number to compute

(float n)

Source from the content-addressed store, hash-verified

4032 * @param n number to compute
4033 */
4034 static public final float abs(float n) {
4035 return (n < 0) ? -n : n;
4036 }
4037
4038 static public final int abs(int n) {
4039 return (n < 0) ? -n : n;

Callers 14

hintMethod · 0.95
subPixelStrokeMethod · 0.95
sideMethod · 0.95
parsePathArctoMethod · 0.95
matrixScaleMethod · 0.45
sameMethod · 0.45
diffMethod · 0.45
zeroMethod · 0.45
nonZeroMethod · 0.45
vertexMethod · 0.45
rotateMethod · 0.45
renderProgressIconMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected