// CCMapAt returns a positive number identifying the position's connected
// component as computed by either the last CCMap or CCMapAll call. It
// returns -1 on out of range positions.
CCMapAt returns a positive number identifying the position's connected
component as computed by either the last CCMap or CCMapAll call. It
returns -1 on out of range positions.
// CCMapAt returns a positive number identifying the position ' s connected // component as computed by either the last CCMap or CCMapAll call . It // returns - 1 on out of range positions .
func (pr *PathRange) CCMapAt(p gruid.Point) int {
	if !p.In(pr.Rg) || pr.CC == nil {
		return -1
	}
	return pr.CC[pr.idx(p)] - 1
}
func ( pr * PathRange ) CCMapAt ( p gruid . Point ) int { if ! p . In ( pr . Rg ) || pr . CC == nil { return - 1 } return pr . CC [ pr . idx ( p ) ] - 1 }
CCMapAt returns a positive number identifying the position's connected
component as computed by either the last CCMap or CCMapAll call.
CCMapAt returns a positive number identifying the position ' s connected component as computed by either the last CCMap or CCMapAll call .