// At returns the cell at a given position. If the position is out of range, it
// returns the zero value.
At returns the cell at a given position. If the position is out of range, it
returns the zero value.
// At returns the cell at a given position . If the position is out of range it // returns the zero value .
func (gd Grid) At(p gruid.Point) Cell {
	q := p.Add(gd.Rg.Min)
	if !q.In(gd.Rg) {
		return Cell(0)
	}
	i := q.Y*gd.Ug.Width + q.X
	return gd.Ug.Cells[i]
}
func ( gd Grid ) At ( p gruid . Point ) Cell { q := p . Add ( gd . Rg . Min ) if ! q . In ( gd . Rg ) { return Cell ( 0 ) } i := q . Y * gd . Ug . Width + q . X return gd . Ug . Cells [ i ] }
At returns the cell at a given position.
At returns the cell at a given position .