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

Method sq

core/src/processing/core/PApplet.java:4477–4479  ·  view source on GitHub ↗

( begin auto-generated from sq.xml ) Squares a number (multiplies a number by itself). The result is always a positive number, as multiplying two negative numbers always yields a positive result. For example, -1 -1 = 1. ( end auto-generated ) @webref math:calculation @param n number to square @see

(float n)

Source from the content-addressed store, hash-verified

4475 * @see PApplet#sqrt(float)
4476 */
4477 static public final float sq(float n) {
4478 return n*n;
4479 }
4480
4481/**
4482 * ( begin auto-generated from sqrt.xml )

Callers 2

parsePathArctoMethod · 0.95
distMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected