Beispiel #1
0
        public static void YsAtX_Out_of_Range_Return_Empty_Arrays(double xCoord, double x, double y, double rotation)
        {
            CartesianCoordinate center = new CartesianCoordinate(x, y);
            ParabolicCurve      curve  = new ParabolicCurve(a, center, rotation, Tolerance);

            double[] yCoords = curve.YsAtX(xCoord);

            Assert.AreEqual(0, yCoords.Length);
        }
Beispiel #2
0
        public static void YsAtX(double xCoord, double x, double y, double rotation, double y1CoordExpected, double y2CoordExpected)
        {
            CartesianCoordinate center = new CartesianCoordinate(x, y);
            ParabolicCurve      curve  = new ParabolicCurve(a, center, rotation, Tolerance);

            double[] yCoords = curve.YsAtX(xCoord);

            Assert.AreEqual(y1CoordExpected, yCoords[0], Tolerance);
            Assert.AreEqual(y2CoordExpected, yCoords[1], Tolerance);
        }