Пример #1
0
 /// <summary>
 /// Initializes new instance of <see cref="GeoPoint"/>.
 /// </summary>
 /// <param name="position">The position of the point.</param>
 /// <param name="boundingBox">The <see cref="GeoBoundingBox"/> to use.</param>
 /// <param name="additionalProperties">The set of additional properties associated with the <see cref="GeoObject"/>.</param>
 public GeoPoint(GeoPosition position, GeoBoundingBox?boundingBox, IReadOnlyDictionary <string, object?> additionalProperties) : base(boundingBox, additionalProperties)
 {
     Position = position;
 }
Пример #2
0
 /// <summary>
 /// Initializes new instance of <see cref="GeoPoint"/>.
 /// </summary>
 /// <param name="position">The position of the point.</param>
 /// <param name="boundingBox">The <see cref="GeoBoundingBox"/> to use.</param>
 /// <param name="customProperties">The set of custom properties associated with the <see cref="GeoObject"/>.</param>
 public GeoPoint(GeoPosition position, GeoBoundingBox?boundingBox, IReadOnlyDictionary <string, object?> customProperties) : base(boundingBox, customProperties)
 {
     Coordinates = position;
 }
Пример #3
0
 /// <summary>
 /// Initializes new instance of <see cref="GeoPoint"/>.
 /// </summary>
 /// <param name="position">The position of the point.</param>
 public GeoPoint(GeoPosition position) : this(position, null, DefaultProperties)
 {
 }
Пример #4
0
 /// <inheritdoc />
 public bool Equals(GeoPosition other)
 {
     return(Nullable.Equals(Altitude, other.Altitude) && Longitude.Equals(other.Longitude) && Latitude.Equals(other.Latitude));
 }