mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
PAD: better HitTest( const VECTOR2I& aPosition, int aAccuracy, PCB_LAYER_ID aLayer )
This commit is contained in:
parent
963aa47778
commit
b349f1988a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user