private void updateSelectionRectKoordinates(double x1,double x2,double y1,double y2,ModifiableHyperBoundingBox ranges){
  double[] nv1=proj.fastProjectRenderToDataSpace(x1,y1);
  double[] nv2=proj.fastProjectRenderToDataSpace(x2,y2);
  long[] actDim=proj.getVisibleDimensions2D();
  for (int d=BitsUtil.nextSetBit(actDim,0); d >= 0; d=BitsUtil.nextSetBit(actDim,d + 1)) {
    ranges.setMin(d,Math.min(nv1[d],nv2[d]));
    ranges.setMax(d,Math.max(nv1[d],nv2[d]));
  }
}

private void updateSelectionRectKoordinates ( double x1 , double x2 , double y1 , double y2 , ModifiableHyperBoundingBox ranges ) { double [ ] nv1 = proj . fastProjectRenderToDataSpace ( x1 , y1 ) ; double [ ] nv2 = proj . fastProjectRenderToDataSpace ( x2 , y2 ) ; long [ ] actDim = proj . getVisibleDimensions2D ( ) ; for ( int d = BitsUtil . nextSetBit ( actDim , 0 ) ; d >= 0 ; d = BitsUtil . nextSetBit ( actDim , d + 1 ) ) { ranges . setMin ( d , Math . min ( nv1 [ d ] , nv2 [ d ] ) ) ; ranges . setMax ( d , Math . max ( nv1 [ d ] , nv2 [ d ] ) ) ; } }
set the selected ranges and the mask for the actual dimensions in the context .
