Add drawPerpMark() and MgCircle.hitTest().