geometry: SEG::Contains() should use Distance(), not SquaredDistance() for correct rounding

This commit is contained in:
Tomasz Wlostowski 2021-05-27 23:37:14 +02:00
parent e7fe8c4ddb
commit b3fb7190df
1 changed files with 1 additions and 1 deletions

View File

@ -203,5 +203,5 @@ bool SEG::Collide( const SEG& aSeg, int aClearance, int* aActual ) const
bool SEG::Contains( const VECTOR2I& aP ) const
{
return SquaredDistance( aP ) <= 1; // 1 * 1 to be pedantic
return Distance( aP ) <= 1; // 1 * 1 to be pedantic
}