Open hagenah opened 2 months ago
LineSegment2D.Direction returns the negative direction (P1-P2)/|P1-P2| instead of (P2-P1)/|P2-P1|.
Version: Emgu 4.9.0.5494
Sample source code:
Trace.WriteLine($"Direction: {new LineSegment2D(new Point(0,0),new Point(2,0)).Direction}");
Output: Direction: {X=-1, Y=0} Expected Output: Direction: {X=1, Y=0}
Remark: LineSegment2DF returns the correct direction.
Thanks for pointing that out. Fixed in the above commit. I will be included in the up coming 4.10 release.
LineSegment2D.Direction returns the negative direction (P1-P2)/|P1-P2| instead of (P2-P1)/|P2-P1|.
Version: Emgu 4.9.0.5494
Sample source code:
Trace.WriteLine($"Direction: {new LineSegment2D(new Point(0,0),new Point(2,0)).Direction}");
Output: Direction: {X=-1, Y=0} Expected Output: Direction: {X=1, Y=0}
Remark: LineSegment2DF returns the correct direction.