TM2IN  0.5.1
collinear.h
Go to the documentation of this file.
1 //
2 // Created by dongmin on 18. 7. 23.
3 //
4 
5 #ifndef TM2IN_ALGORITHM_COLLINEAR_H
6 #define TM2IN_ALGORITHM_COLLINEAR_H
7 
8 #include <features/Vertex.h>
9 
10 namespace TM2IN{
15  extern double threshold_collinear;
16  namespace algorithm{
21  bool has_lower_angle_than(Vertex* origin, Vertex* v1, Vertex* v2, double angle);
27  bool isCollinear(Vertex *start_p, Vertex *check_p, Vertex *end_p);
28  }
29 }
30 
31 #endif //TM2IN_COLLINEAR_H
bool has_lower_angle_than(Vertex *origin, Vertex *v1, Vertex *v2, double degree)
Compares angle between Vector(origin, v1) and Vector(origin, v2) and the specific angle...
Definition: collinear.cpp:13
Definition: collinear.cpp:10
bool isCollinear(Vertex *start_p, Vertex *check_p, Vertex *end_p)
Determines whether the line string (start_p, check_p, end_p) is collinear.
Definition: collinear.cpp:20
double threshold_collinear
Definition: collinear.cpp:11