Exemplo n.º 1
0
        public static void XatY(double yCoord, double x, double y, double rotation, double xCoordExpected)
        {
            CartesianCoordinate center = new CartesianCoordinate(x, y);
            ParabolicCurve      curve  = new ParabolicCurve(a, center, rotation, Tolerance);

            double xCoord = curve.XatY(yCoord);

            Assert.AreEqual(xCoordExpected, xCoord, Tolerance);
        }
Exemplo n.º 2
0
        public static void XatY_Out_of_Range_Return_Infinity(double yCoord, double x, double y, double rotation)
        {
            CartesianCoordinate center = new CartesianCoordinate(x, y);
            ParabolicCurve      curve  = new ParabolicCurve(a, center, rotation, Tolerance);

            double xCoord = curve.XatY(yCoord);

            Assert.AreEqual(double.PositiveInfinity, xCoord);
        }