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

Method add

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

Appends the specified value to the end of this FloatArray. Returns the number of elements after adding.

(float value)

Source from the content-addressed store, hash-verified

63
64 /** Appends the specified value to the end of this FloatArray. Returns the number of elements after adding. */
65 public int add(float value) {
66 if (size >= data.length) {
67 float[] newData = new float[size*2 + 50];
68 System.arraycopy(data, 0, newData, 0, size);
69 data = newData;
70 }
71 data[size++] = value;
72 return size;
73 }
74
75 /** Appends the first n values from the specified array to this FloatArray. Returns the number of elements after adding. */
76 public int add(float[] a, int n) {

Callers 5

analyzeMethod · 0.95
addPointMethod · 0.95
getShapeAsArrayMethod · 0.95
parsePathMethod · 0.95
getFloatPolygonMethod · 0.95

Calls 1

arraycopyMethod · 0.45

Tested by

no test coverage detected