centroid

fun centroid(result: Location): Location

Computes the location of the angular center of this sector, which is the mid-angle of each of this sector's latitude and longitude dimensions.

Return

the specified result argument containing the computed centroid

Parameters

result

a pre-allocated Location in which to return the computed centroid