@cell
def mirror(component: Component, p1: Float2=(0, 1), p2: Float2=(0, 0)) -> Component:
    'Return new Component with a mirrored reference.\n\n    Args:\n        p1: first point to define mirror axis\n        p2: second point to define mirror axis\n    '
    component_new = Component()
    component_new.component = component
    ref = component_new.add_ref(component)
    ref.mirror(p1=p1, p2=p2)
    component_new.add_ports(ref.ports)
    component_new.copy_child_info(component)
    return component_new
Return new Component with a mirrored reference.

Args:
    p1: first point to define mirror axis
    p2: second point to define mirror axis
@cell
def mirror(component: Component, p1: Float2=(0, 1), p2: Float2=(0, 0)) -> Component:
    'Return new Component with a mirrored reference.\n\n    Args:\n        p1: first point to define mirror axis\n        p2: second point to define mirror axis\n    '
    component_new = Component()
    component_new.component = component
    ref = component_new.add_ref(component)
    ref.mirror(p1=p1, p2=p2)
    component_new.add_ports(ref.ports)
    component_new.copy_child_info(component)
    return component_new