Commit 683b72dd authored by oscar's avatar oscar

提交更新

parent 2e05cab6
......@@ -39,7 +39,7 @@ double correct_angle(std::vector<point2d>& points)
// 打印
//cout << "X_copy: " << endl << X_copy
Eigen::Vector2d dX(points[4].x - points[0].x, points[4].y - points[0].y);
Eigen::Vector2d orientation(vec(0, 0), vec(0, 1));
Eigen::Vector2d orientation(vec(1, 0), vec(1, 1));
double alpha = dX.transpose() * orientation;
if (alpha < 0)
orientation = -orientation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment