KiCad PCB EDA Suite
No Matches
geometry.h File Reference

Go to the source code of this file.


namespace  KI_TEST


std::ostream & operator<< (std::ostream &os, const BOX2I &aBox)
 Define a stream function for logging this type.
template<typename VEC >
bool KI_TEST::IsVecWithinTol (const VEC &aVec, const VEC &aExp, typename VEC::coord_type aTol)
 Check that both x and y of a vector are within expected error.
template<typename BOX >
bool KI_TEST::IsBoxWithinTol (const BOX &aBox, const BOX &aExp, typename BOX::coord_type aTol)
 Check that a box is close enough to another box.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const BOX2I aBox 

Define a stream function for logging this type.

TODO: convert to boost_test_print_type when Boost minver > 1.64

Definition at line 39 of file geometry.h.

References BOX2< Vec >::GetOrigin(), and BOX2< Vec >::GetSize().