So I wanted to include Triangle2D.h and Triangle.h in the same file but due to #define TRIANGLE in both you will get compile errors. I would like to suggest renaming the include in Triangle2D.h to TRIANGLE_2D. I don't see any other file in the lib using it from Triangle2D.h