예제 #1
0
        public IPart RemovePartByPoint(IPosition point)
        {
            int x, y;

            x = ConvertRealValueToPartSequenceX(point.GetX());
            y = ConvertRealValueToPartSequenceY(point.GetY());

            IPosition queryPosition = queryTable.RemovePart(x, y);

            if (queryPosition == null)
            {
                throw new Exception("分块链表里面没有待删除分块的指针!");
            }

            return((IPart)queryPosition);
        }