mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-04 23:25:30 +00:00
Improve performance of SEG::Contains.
This commit is contained in:
parent
18d836ef8b
commit
a82916f4db
@ -320,7 +320,7 @@ bool SEG::Collide( const SEG& aSeg, int aClearance, int* aActual ) const
|
||||
|
||||
bool SEG::Contains( const VECTOR2I& aP ) const
|
||||
{
|
||||
return Distance( aP ) <= 1;
|
||||
return SquaredDistance( aP ) <= 3;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user