We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 239710e commit 28f794dCopy full SHA for 28f794d
core/src/processing/core/PApplet.java
@@ -4815,6 +4815,25 @@ static public final float sq(float n) {
4815
return n*n;
4816
}
4817
4818
+/**
4819
+ * ( begin auto-generated from cb.xml )
4820
+ *
4821
+ * Cubes a number (multiplies a number by its square).
4822
4823
+ * ( end auto-generated )
4824
+ * @webref math:calculation
4825
+ * @param n number to cube
4826
+ * @see PApplet#cbrt(float)
4827
+ */
4828
+
4829
+ static public final float cb(float n) {
4830
+ return n*n*n;
4831
+ }
4832
4833
+ static public final int cb(int n) {
4834
4835
4836
4837
/**
4838
* ( begin auto-generated from sqrt.xml )
4839
*
0 commit comments