MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / toArray

Method toArray

ij/src/main/java/ij/util/FloatArray.java:35–39  ·  view source on GitHub ↗

Returns a float array containing all elements of this FloatArray.

()

Source from the content-addressed store, hash-verified

33
34 /** Returns a float array containing all elements of this FloatArray. */
35 public float[] toArray() {
36 float[] out = new float[size];
37 System.arraycopy(data, 0, out, 0, size);
38 return out;
39 }
40
41 /** Returns the element at the specified position in this FloatArray.
42 * @throws IndexOutOfBoundsException - if index is out of range (<code>index < 0 || index >= size()</code>). */

Callers 5

analyzeMethod · 0.95
getShapeAsArrayMethod · 0.95
parsePathMethod · 0.95
getFloatPolygonMethod · 0.95
trimToSizeMethod · 0.95

Calls 1

arraycopyMethod · 0.45

Tested by

no test coverage detected