magnitudes method
Returns the magnitudes of the elements of the Float64x2List.
Implementation
Float64List magnitudes() {
final m = squareMagnitudes();
for (int i = 0; i < m.length; ++i) {
m[i] = math.sqrt(m[i]);
}
return m;
}
Returns the magnitudes of the elements of the Float64x2List.
Float64List magnitudes() {
final m = squareMagnitudes();
for (int i = 0; i < m.length; ++i) {
m[i] = math.sqrt(m[i]);
}
return m;
}