public override bool Equals(object obj) { IsovistEscapeRoutes other = obj as IsovistEscapeRoutes; if (other == null) { return(false); } return(other.VantageCell.Equals(this.VantageCell)); }
/// <summary> /// Initializes a new instance of the <see cref="IsovistEscapeRoutes"/> class. /// </summary> /// <param name="escapeRoutes">The escape routes.</param> /// <param name="vantageCell">The vantage cell.</param> /// <param name="angleIntercept">The angle intercept.</param> /// <param name="staticCost">The static cost.</param> public IsovistEscapeRoutes(Cell[] escapeRoutes, Cell vantageCell, int angleIntercept, Dictionary <Cell, double> staticCost) { this.VantageCell = vantageCell; CellDestination[] cells = IsovistEscapeRoutes.SplitExtractedEscapeRoute(vantageCell, angleIntercept, escapeRoutes, staticCost); Cell[] destinations = new Cell[cells.Length]; for (int i = 0; i < cells.Length; i++) { destinations[i] = cells[i].CellValue; } this.EscapeRoutes = destinations; }