public double getDouble() {
getBytes();
boolean negative=false;
- double value=0;
- for(;start<end;start++) {
- if (curbuffer[start]>='0'&&curbuffer[start]<='9')
- value=value*((double)10.0)+((double)(curbuffer[start]-'0'));
- else if (curbuffer[start]=='-')
- negative=true;
- }
- if (negative)
- value=-value;
+ double value=Double.nativeparsedouble(curbuffer, start, end-start);
return value;
}
* =============================================================================
*/
void coordinate_print() {
- System.out.println("("+x+", "+y+")");
+ System.out.print("("+x+", "+y+")");
}
}
/* =============================================================================
void element_print() {
for (int c = 0; c < numCoordinate; c++) {
coordinates[c].coordinate_print();
- System.out.println(" ");
+ System.out.print(" ");
}
}
if (bElementPtr.encroachedEdgePtr!=null) {
return -1;
}
+ return 0;
}
public void printHeap() {
it=borderListPtr.head;
while (it.nextPtr!=null) {
coordinate coordinates[]=new coordinate[3];
+ it=it.nextPtr;
edge borderEdgePtr = (edge)it.dataPtr;
yada.Assert(borderEdgePtr!=null);
coordinates[0] = centerCoordinate;
elementPtr.element_isGarbage(); /* so we can detect conflicts */
while (true) {
- edgeMapPtr = new avltree(1);
+ edgeMapPtr = new avltree(0);
yada.Assert(edgeMapPtr!=null);
encroachElementPtr = TMgrowRegion(elementPtr,
this,