from typing import Union


def _on_edge(
    easting: Union[int, float], northing: Union[int, float], resolution: int
) -> bool:
    """Test if point lies on edge."""
    return (
        True
        if (int(easting) % resolution == 0) or (int(northing) % resolution == 0)
        else False
    )