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

Method sq

core/src/processing/core/PApplet.java:4053–4055  ·  view source on GitHub ↗

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. @webref math:calculation @webBrief Squares a number (multiplies a number by itself) @param n number to square

(float n)

Source from the content-addressed store, hash-verified

4051 * @see PApplet#sqrt(float)
4052 */
4053 static public final float sq(float n) {
4054 return n*n;
4055 }
4056
4057/**
4058 *

Callers 2

parsePathArctoMethod · 0.95
distMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected