(self, x: float, y: float)
return None
Checks if a position collides with any of the pins in the block.
Checks if a position collides with any of the pins in the block.
Checks if a position collides with any of the pins in the block .
def in_pin(self, x: float, y: float) -> Optional[Pin]:
        """ Checks if a position collides with any of the pins in the block.
        """
        for pin in self.input_pins + self.output_pins:
            if pin.collide_point(x, y):
                return pin
        return None
def in_pin ( self , x : float , y : float ) -> Optional [ Pin ] : for pin in self . input_pins + self . output_pins : if pin . collide_point ( x , y ) : return pin return None