Allow neg. angle
This commit is contained in:
parent
6692a2fcda
commit
7814f64873
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user