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

Method reverseArray

ij/src/main/java/ij/macro/Functions.java:6685–6696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6683 }
6684
6685 Variable[] reverseArray() {
6686 interp.getLeftParen();
6687 Variable[] a = getArray();
6688 interp.getRightParen();
6689 int n = a.length;
6690 for (int i=0; i<n/2; i++) {
6691 Variable temp = a[i];
6692 a[i] = a[n-i-1];
6693 a[n-i-1] = temp;
6694 }
6695 return a;
6696 }
6697
6698 Variable[] rotateArray() {
6699 interp.getLeftParen();

Callers 1

doArrayMethod · 0.95

Calls 3

getArrayMethod · 0.95
getLeftParenMethod · 0.80
getRightParenMethod · 0.80

Tested by

no test coverage detected