PAD: better HitTest( const VECTOR2I& aPosition, int aAccuracy, PCB_LAYER_ID aLayer )

This commit is contained in:
jean-pierre charras 2025-08-27 13:23:02 +02:00
parent 963aa47778
commit b349f1988a

View File

@ -1475,6 +1475,9 @@ void PAD::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>&
bool PAD::HitTest( const VECTOR2I& aPosition, int aAccuracy, PCB_LAYER_ID aLayer ) const
{
if( !IsOnLayer( aLayer ) )
return false;
VECTOR2I delta = aPosition - GetPosition();
int boundingRadius = GetBoundingRadius() + aAccuracy;