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

Method abs

core/src/processing/core/PApplet.java:4457–4459  ·  view source on GitHub ↗

( begin auto-generated from abs.xml ) Calculates the absolute value (magnitude) of a number. The absolute value of a number is always positive. ( end auto-generated ) @webref math:calculation @param n number to compute

(float n)

Source from the content-addressed store, hash-verified

4455 * @param n number to compute
4456 */
4457 static public final float abs(float n) {
4458 return (n < 0) ? -n : n;
4459 }
4460
4461 static public final int abs(int n) {
4462 return (n < 0) ? -n : n;

Callers 13

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

Calls

no outgoing calls

Tested by

no test coverage detected