~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/drc_clearance_test_functions.cpp

All: use CPOLYGONS_LIST, a typedef of  std::vector<CPolyPt> to handle a Corners  Polygons List. 
This is a starting point of some code enhancements relative to polygons in Pcbew and 3D viewer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1028
1028
{
1029
1029
    int ii;
1030
1030
 
1031
 
    ii = KiROUND( ( (double) arg * num ) / den );
 
1031
    ii = (int) ( ( (double) arg * num ) / den );
1032
1032
    return ii;
1033
1033
}
1034
1034