sq()
Math / CalculationDescription
Squares a number (multiplies a number by itself). Same as x*x.
Syntax
float sq(float x)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | number to square |
Returns
floatRelated
Under the Hood
From Processing.h:
static float sq(float x) { return x*x; }