51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
namespace OperationControl.Mapas.Interaction
|
|
{
|
|
/// <summary>
|
|
/// Retângulo geográfico produzido por uma
|
|
/// interação do operador no mapa.
|
|
///
|
|
/// Coordenadas em WGS84.
|
|
/// </summary>
|
|
public sealed class MapaRetanguloSelecao
|
|
{
|
|
public double MinLatitude { get; }
|
|
|
|
public double MinLongitude { get; }
|
|
|
|
public double MaxLatitude { get; }
|
|
|
|
public double MaxLongitude { get; }
|
|
|
|
|
|
public MapaRetanguloSelecao(
|
|
double minLatitude,
|
|
double minLongitude,
|
|
double maxLatitude,
|
|
double maxLongitude)
|
|
{
|
|
MinLatitude =
|
|
Math.Min(
|
|
minLatitude,
|
|
maxLatitude
|
|
);
|
|
|
|
MaxLatitude =
|
|
Math.Max(
|
|
minLatitude,
|
|
maxLatitude
|
|
);
|
|
|
|
MinLongitude =
|
|
Math.Min(
|
|
minLongitude,
|
|
maxLongitude
|
|
);
|
|
|
|
MaxLongitude =
|
|
Math.Max(
|
|
minLongitude,
|
|
maxLongitude
|
|
);
|
|
}
|
|
}
|
|
} |