MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / are_lines_same

Function are_lines_same

Geometry/Geometry 2D.cpp:175–178  ·  view source on GitHub ↗

check if two lines are same

Source from the content-addressed store, hash-verified

173}
174// check if two lines are same
175bool are_lines_same(PT a, PT b, PT c, PT d) {
176 if (fabs(cross(a - c, c - d)) < eps && fabs(cross(b - c, c - d)) < eps) return true;
177 return false;
178}
179// bisector vector of <abc
180PT angle_bisector(PT &a, PT &b, PT &c){
181 PT p = a - b, q = c - b;

Callers

nothing calls this directly

Calls 1

crossFunction · 0.70

Tested by

no test coverage detected