public FloatCoord getPinLocation(PlacedItem i, Pin p) { Coord itemLoc = i.loc; Coord pinLoc = p.getLocation(); ItemType type = i.i.getType(); return new FloatCoord( spacing.getX(itemLoc.x) - type.getOffsetX() + pinLoc.x, spacing.getY(itemLoc.y) - type.getOffsetY() + pinLoc.y); }