closest Anchor
Find the closest anchor to the position.
Return
The closest anchor or null if the anchors are empty
Parameters
position
The position to start searching from
Find the closest anchor to the position, in the specified direction.
Return
The closest anchor or null if the anchors are empty
Parameters
position
The position to start searching from
search Upwards
Whether to search upwards from the current position or downwards