toEdge and relativePosition.