package greenfoot.importer.scratch;
import java.math.BigDecimal;
| As with ScratchRectangle, we use our own class because the bounds can be in any
| number format
| @author neil
|
public class ScratchPoint
extends ScratchObject{
public BigDecimal x, y;
public ScratchPoint(BigDecimal x, BigDecimal y)
{
this.x = x;
this.y = y;
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("ScratchPoint [x=");
builder.append(x);
builder.append(", y=");
builder.append(y);
builder.append("]");
return builder.toString();
}
}
top,
use,
map,
class ScratchPoint
. ScratchPoint
. toString
28 neLoCode
+ 3 LoComm