7
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:
Alex Shvartzkop 2025-03-08 23:03:44 +03:00
parent 18d836ef8b
commit a82916f4db

View File

@ -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;
}