Allow neg. angle
This commit is contained in:
1 parent
6692a2fcda
commit
7814f64873
1 file changed
+4
@@ -144,6 +144,10 @@ void Processing::calcAngles(FrameData &data, int imageColums, int imageRows, boo
|
||||
LFRVector b(contourCenter-focusPoint);
|
||||
|
||||
double angle = a.angle(b);
|
||||
if (b.x < 0.0)
|
||||
{
|
||||
angle *= -1.0;
|
||||
}
|
||||
|
||||
//Write to Data
|
||||
data.angle = angle;
|
||||
|
||||
Reference in new issue
Block a user