using System.Collections.Generic; namespace PathFinding { public interface IPlanarCollection : IEnumerable where T : IPlanarElement { T this[float x, float y] { get; set; } int GetLength(int dimension); } }