KiCad PCB EDA Suite
ttl_util.h File Reference
#include <vector>
#include <algorithm>

Go to the source code of this file.

Namespaces

 ttl_util
 Utilities.
 

Functions

Computational geometry
template<class REAL_TYPE >
REAL_TYPE ttl_util::ScalarProduct2D (REAL_TYPE aDX1, REAL_TYPE aDY1, REAL_TYPE aDX2, REAL_TYPE aDY2)
 Scalar product between two 2D vectors. More...
 
template<class REAL_TYPE >
REAL_TYPE ttl_util::CrossProduct2D (REAL_TYPE aDX1, REAL_TYPE aDY1, REAL_TYPE aDX2, REAL_TYPE aDY2)
 Cross product between two 2D vectors. More...
 
template<class REAL_TYPE >
REAL_TYPE ttl_util::Orient2DFast (REAL_TYPE aPA[2], REAL_TYPE aPB[2], REAL_TYPE aPC[2])
 Returns a positive value if the 2D nodes/points aPA, aPB, and aPC occur in counterclockwise order; a negative value if they occur in clockwise order; and zero if they are collinear. More...