parse_arc#
- parse_arc(arc: str)#
Parse an arc string and return a tuple of two endpoint tuples.
- Parameters:
arc – String representing an arc (e.g., “a1b5”).
- Returns:
Tuple of ((letter1, integer1), (letter2, integer2)) if valid.
- Raises:
ValueError – If the string is not in the correct format.