Rename Method "FromRandomCoords" -> FromCoords
This commit is contained in:
parent
6d59253a0b
commit
f84aa82186
@ -31,7 +31,7 @@ public static class Renderer
|
|||||||
this.minLat = minLat;
|
this.minLat = minLat;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Bounds FromRandomCoords(float lat1, float lon1, float lat2, float lon2)
|
public static Bounds FromCoords(float lat1, float lon1, float lat2, float lon2)
|
||||||
{
|
{
|
||||||
float minLat = lat1 < lat2 ? lat1 : lat2;
|
float minLat = lat1 < lat2 ? lat1 : lat2;
|
||||||
float minLon = lon1 < lon2 ? lon1 : lon2;
|
float minLon = lon1 < lon2 ? lon1 : lon2;
|
||||||
@ -41,9 +41,9 @@ public static class Renderer
|
|||||||
return new Bounds(minLat, minLon, maxLat, maxLon);
|
return new Bounds(minLat, minLon, maxLat, maxLon);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Bounds FromRandomCoords(Coordinates c1, Coordinates c2)
|
public static Bounds FromCoords(Coordinates c1, Coordinates c2)
|
||||||
{
|
{
|
||||||
return FromRandomCoords(c1.latitude, c1.longitude, c2.latitude, c2.longitude);
|
return FromCoords(c1.latitude, c1.longitude, c2.latitude, c2.longitude);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user