def compute_cross_ratio(p1, p2, p3, p4):
    """Compute cross-ratio of four points."""
    pass

def preserve_cross_ratio(p1, p2, p3, p4):
    """Preserve cross-ratio during transformation."""
    pass
