public void StaticDistanceTest(double pointX, double pointY, double rayOriginX, double rayOriginY, double rayDirectionX, double rayDirectionY, double result) { var point = new Point2D(pointX, pointY); var ray = new Ray2D(new Point2D(rayOriginX, rayOriginY), new Vector2D(rayDirectionX, rayDirectionY)); var distance = Ray2D.Distance(ray, point); Assert.AreEqual(result, distance, Helper.E); }