src/AircraftTrajectories/Models/TemporalGrid/Contours/Contour.cs
/// <summary>
/// Returns the contour points on a grid starting in a given contour point
/// </summary>
/// <param name="first"></param>
/// <param name="vgrid"></param>
/// <param name="hgrid"></param>
/// <returns></returns>
Returns the contour points on a grid starting in a given contour point
Returns the contour points on a grid starting in a given contour point
private IEnumerable<ContourPoint> GetPoints(ContourPoint first, IEnumerable<ContourPoint>[][] vgrid, IEnumerable<ContourPoint>[][] hgrid)
        {
            first.Parent = this;
            yield return first;
            ContourPoint next, current = first;
            while ((next = current.FindNext(vgrid, hgrid)) != null && next != first)
            {
                next.Parent = this;
                yield return next;
                current = next;
            }
        }
private IEnumerable < ContourPoint > GetPoints ( ContourPoint first , IEnumerable < ContourPoint > [ ] [ ] vgrid , IEnumerable < ContourPoint > [ ] [ ] hgrid ) { first . Parent = this ; yield return first ; ContourPoint next , current = first ; while ( ( next = current . FindNext ( vgrid , hgrid ) ) != null && next != first ) { next . Parent = this ; yield return next ; current = next ; } }
Returns the contour points on a grid starting in a given contour point
Returns the contour points on a grid starting in a given contour point
None
first
ContourPoint
None
vgrid
IEnumerable<ContourPoint>[][]
None
hgrid
IEnumerable<ContourPoint>[][]
None