Capturing direction and current edge position