| 7 | using namespace PyMesh; |
| 8 | |
| 9 | bool FaceUtils::is_colinear_2D( |
| 10 | const Vector2F& v0, |
| 11 | const Vector2F& v1, |
| 12 | const Vector2F& v2) { |
| 13 | exactinit(); |
| 14 | double v0_xy[2] = {v0[0], v0[1]}; |
| 15 | double v1_xy[2] = {v1[0], v1[1]}; |
| 16 | double v2_xy[2] = {v2[0], v2[1]}; |
| 17 | return orient2d(v0_xy, v1_xy, v2_xy) == 0; |
| 18 | } |
| 19 | |
| 20 | bool FaceUtils::is_colinear_3D( |
| 21 | const Vector3F& v0, |
no test coverage detected