KiCad PCB EDA Suite
seg.cpp File Reference
#include <geometry/seg.h>

Go to the source code of this file.

Macros

#define CHK(_seg, _pt)   if( (_seg).PointCloserThan( _pt, aClearance ) ) return true;
 

Functions

template<typename T >
int sgn (T aVal)
 

Macro Definition Documentation

#define CHK (   _seg,
  _pt 
)    if( (_seg).PointCloserThan( _pt, aClearance ) ) return true;

Referenced by SEG::Collide().

Function Documentation

template<typename T >
int sgn ( aVal)

Definition at line 28 of file seg.cpp.

Referenced by SEG::PointCloserThan().

29 {
30  return ( T( 0 ) < aVal ) - ( aVal < T( 0 ) );
31 }
T
enum T contains all this lexer's tokens.