unify WindingExtendBounds logic

This commit is contained in:
Garux
2021-03-05 06:15:48 +03:00
parent 902fb46938
commit bee749118f
8 changed files with 14 additions and 29 deletions

View File

@@ -151,13 +151,11 @@ float WindingArea( const winding_t *w ){
return total;
}
MinMax WindingBounds( const winding_t *w ){
MinMax minmax;
for ( int i = 0 ; i < w->numpoints ; i++ )
void WindingExtendBounds( const winding_t *w, MinMax& minmax ){
for ( int i = 0 ; i < w->numpoints ; ++i )
{
minmax.extend( w->p[i] );
}
return minmax;
}
/*