getCentroid function
Get centroid
Implementation
List<double?> getCentroid(latitude, longitude, height, width) {
double? centeredY = latitude + (height / 2);
double? centeredX = longitude + (width / 2);
return [centeredX, centeredY];
}
Get centroid
List<double?> getCentroid(latitude, longitude, height, width) {
double? centeredY = latitude + (height / 2);
double? centeredX = longitude + (width / 2);
return [centeredX, centeredY];
}