KiCad PCB EDA Suite
geometry.h File Reference

Go to the source code of this file.




std::ostream & operator<< (std::ostream &os, const BOX2I &aBox)
 Define a stream function for logging this type. More...
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. More...
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. More...

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.

40 {
41  os << "BOX[ " << aBox.GetOrigin() << " + " << aBox.GetSize() << " ]";
42  return os;
43 }
const Vec & GetSize() const
Definition: box2.h:189
const Vec & GetOrigin() const
Definition: box2.h:193

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