MCPcopy Create free account
hub / github.com/benfry/processing4 / index

Method index

core/src/processing/data/FloatList.java:379–386  ·  view source on GitHub ↗

Return the first index of a particular value.

(float what)

Source from the content-addressed store, hash-verified

377
378 /** Return the first index of a particular value. */
379 public int index(float what) {
380 for (int i = 0; i < count; i++) {
381 if (data[i] == what) {
382 return i;
383 }
384 }
385 return -1;
386 }
387
388
389 /**

Callers 2

removeValueMethod · 0.95
replaceValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected