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

Method toFloat

ij/src/main/java/ij/util/Tools.java:132–140  ·  view source on GitHub ↗

Converts the double array 'a' to a float array.

(double[] a)

Source from the content-addressed store, hash-verified

130
131 /** Converts the double array 'a' to a float array. */
132 public static float[] toFloat(double[] a) {
133 if (a==null)
134 return null;
135 int len = a.length;
136 float[] f = new float[len];
137 for (int i=0; i<len; i++)
138 f[i] = (float)a[i];
139 return f;
140 }
141
142 /** Adds a number to all array elements */
143 public static void addToArray(float[] a, float value) {

Callers 9

drawShapesMethod · 0.95
PlotWindowMethod · 0.95
addPointsMethod · 0.95
PlotMethod · 0.95
addMethod · 0.95
addPointsMethod · 0.95
drawVectorsMethod · 0.95
addErrorBarsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected