| 
    KiCad PCB EDA Suite
    
   | 
 
#include <qa_utils/wx_utils/unit_test_utils.h>#include <geometry/shape_poly_set.h>#include <qa_utils/geometry/poly_set_construction.h>#include <qa_utils/geometry/seg_construction.h>#include <qa_utils/geometry/geometry.h>Go to the source code of this file.
Classes | |
| struct | SPS_DISTANCE_TO_SEG_CASE | 
| Declares the Boost test suite fixture.  More... | |
Functions | |
| static constexpr int | Millimeter2iu (double mm) | 
| static std::vector< SPS_DISTANCE_TO_SEG_CASE > | GetSPSSegDistCases () | 
| BOOST_AUTO_TEST_CASE (SegDistance) | |
| Check segment distances.   | |
Variables | |
| static constexpr double | IU_PER_MM = 1e3 | 
| Mock up a conversion function.   | |
| BOOST_AUTO_TEST_CASE | ( | SegDistance | ) | 
Check segment distances.
Definition at line 142 of file test_shape_poly_set_distance.cpp.
References BOOST_CHECK_PREDICATE(), BOOST_TEST_CONTEXT(), GetSPSSegDistCases(), KI_TEST::IsWithin(), and SHAPE_POLY_SET::SquaredDistanceToSeg().
      
  | 
  static | 
Definition at line 63 of file test_shape_poly_set_distance.cpp.
References Millimeter2iu().
Referenced by BOOST_AUTO_TEST_CASE().
      
  | 
  inlinestaticconstexpr | 
Definition at line 37 of file test_shape_poly_set_distance.cpp.
References IU_PER_MM.
Referenced by GetSPSSegDistCases().
      
  | 
  staticconstexpr | 
Mock up a conversion function.
Definition at line 35 of file test_shape_poly_set_distance.cpp.
Referenced by Millimeter2iu(), SCH_IO_KICAD_SEXPR_PARSER::SCH_IO_KICAD_SEXPR_PARSER(), and SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().