Accord.Tests.Math.LineTest.GetAngleBetweenLinesTest C# (CSharp) Method

GetAngleBetweenLinesTest() private method

private GetAngleBetweenLinesTest ( float sx1, float sy1, float ex1, float ey1, float sx2, float sy2, float ex2, float ey2, float expectedAngle ) : void
sx1 float
sy1 float
ex1 float
ey1 float
sx2 float
sy2 float
ex2 float
ey2 float
expectedAngle float
return void
        public void GetAngleBetweenLinesTest(float sx1, float sy1, float ex1, float ey1, float sx2, float sy2, float ex2, float ey2, float expectedAngle)
        {
            Line line1 = Line.FromPoints(new Point(sx1, sy1), new Point(ex1, ey1));
            Line line2 = Line.FromPoints(new Point(sx2, sy2), new Point(ex2, ey2));

            float angle = line1.GetAngleBetweenLines(line2);

            Assert.AreEqual(expectedAngle, angle, Error);
        }