mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
46 lines
974 B
C#
46 lines
974 B
C#
using System;
|
|
|
|
namespace Radzen;
|
|
|
|
/// <summary>
|
|
/// A class that represents a <see cref="Radzen.Blazor.RadzenGoogleMap" /> position.
|
|
/// </summary>
|
|
public class GoogleMapPosition : IEquatable<GoogleMapPosition>
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the latitude.
|
|
/// </summary>
|
|
/// <value>The latitude.</value>
|
|
public double Lat { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the longitude.
|
|
/// </summary>
|
|
/// <value>The longitude.</value>
|
|
public double Lng { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public bool Equals(GoogleMapPosition? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
return this.Lat == other.Lat && this.Lng == other.Lng;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override bool Equals(object? obj)
|
|
{
|
|
return this.Equals(obj as GoogleMapPosition);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
|