PCL judges that three points are collinear (three-dimensional space)

1. Introduction

Continuing with the previous idea , PCL judges the parallelism of two line segments (three-dimensional space) , we can judge the collinearity of three points as judging whether two line segments are parallel, and these two line segments share one of the endpoints, based on this when When the two line segments are parallel, it proves that the three points are collinear.

Two, implement the code

//标准文件
#include <iostream>
#include <thread>

Guess you like

Origin blog.csdn.net/dayuhaitang1/article/details/132611964
Recommended