this(BoundsImpl.create());
}
public double[] toArray() {
JSObject boundsOpaque = BoundsImpl.toArray(getJSObject());
JDoubleArray bounds = JDoubleArray.narrowToJDoubleArray(boundsOpaque);
int boundsLength = bounds.length();
double[] boundsCoordinates = new double[4];
if (boundsLength == 4) {
for (int i = 0; i < boundsLength; i++) {
boundsCoordinates[i] = bounds.get(i);
}
}
return boundsCoordinates;
}