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);
|
LFRVector b(contourCenter-focusPoint);
|
||||||
|
|
||||||
double angle = a.angle(b);
|
double angle = a.angle(b);
|
||||||
|
if (b.x < 0.0)
|
||||||
|
{
|
||||||
|
angle *= -1.0;
|
||||||
|
}
|
||||||
|
|
||||||
//Write to Data
|
//Write to Data
|
||||||
data.angle = angle;
|
data.angle = angle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user