public void GetAngleBetweenLinesTest( int sx1, int sy1, int ex1, int ey1, int sx2, int sy2, int ex2, int ey2, float expectedAngle ) { IntPoint line1start = new IntPoint( sx1, sy1 ); IntPoint line1end = new IntPoint( ex1, ey1 ); IntPoint line2start = new IntPoint( sx2, sy2 ); IntPoint line2end = new IntPoint( ex2, ey2 ); float angle = GeometryTools.GetAngleBetweenLines( line1start, line1end, line2start, line2end ); Assert.AreEqual( expectedAngle, angle, 0.00001f ); } }