Improve performance of SEG::Contains.

(cherry picked from commit a82916f4db)
This commit is contained in:
Alex Shvartzkop
2025-05-20 15:14:10 -07:00
committed by Seth Hillbrand
parent b47bf99632
commit 4d3ac103ad
+1 -1
View File
@@ -361,7 +361,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;
}