/// <summary> /// Get LowerLine From CoordinateList /// </summary> /// <returns></returns> public AirfoilCoordinate GetLowerLine() { var index = (int)GetMinimumIndex(CoordinateList, 0); Double[,] temp = new Double[CoordinateList.Count - index + 1, 2]; for (int i = index; i < CoordinateList.Count; ++i) { temp[i - index, 0] = CoordinateList[i][0]; temp[i - index, 1] = CoordinateList[i][1]; } AirfoilCoordinate coordinate = new AirfoilCoordinate(); coordinate.Import(temp); return(coordinate); }
/// <summary> /// Get UpperLine From CoordinateList /// </summary> /// <returns></returns> public AirfoilCoordinate GetUpperLine() { var index = (int)GetMinimumIndex(CoordinateList, 0); Double[,] temp = new Double[index + 1, 2]; for (int i = 0; i <= index; ++i) { temp[i, 0] = CoordinateList[index - i][0]; temp[i, 1] = CoordinateList[index - i][1]; } AirfoilCoordinate coordinate = new AirfoilCoordinate(); coordinate.Import(temp); return(coordinate); }