// At returns the total ray cost at a given position from the last source(s)
// given to VisionMap or LightMap. It returns a false boolean if the position
// was out of reach.
At returns the total ray cost at a given position from the last source(s)
given to VisionMap or LightMap. It returns a false boolean if the position
was out of reach.
// At returns the total ray cost at a given position from the last source ( s ) // given to VisionMap or LightMap . It returns a false boolean if the position // was out of reach .
func (fov *FOV) At(p gruid.Point) (int, bool) {
	if !p.In(fov.Rg) || fov.Costs == nil {
		return 0, false
	}
	cost := fov.Costs[fov.idx(p)]
	if cost <= 0 {
		return cost, false
	}
	return cost - 1, true
}
func ( fov * FOV ) At ( p gruid . Point ) ( int , bool ) { if ! p . In ( fov . Rg ) || fov . Costs == nil { return 0 , false } cost := fov . Costs [ fov . idx ( p ) ] if cost <= 0 { return cost , false } return cost - 1 , true }
At returns the total ray cost at a given position from the last source(s)
given to VisionMap or LightMap.
At returns the total ray cost at a given position from the last source ( s ) given to VisionMap or LightMap .