< Summary

Class:Azure.Core.GeoJson.GeoPoint
Assembly:Azure.Core.Experimental
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.Experimental\src\Spatial\GeoPoint.cs
Covered lines:6
Uncovered lines:4
Coverable lines:10
Total lines:56
Line coverage:60% (6 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
.ctor(...)-0%100%
.ctor(...)-0%100%
.ctor(...)-100%100%
get_Position()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.Experimental\src\Spatial\GeoPoint.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5
 6namespace Azure.Core.GeoJson
 7{
 8    /// <summary>
 9    /// Represents a point geometry.
 10    /// </summary>
 11    public sealed class GeoPoint : GeoObject
 12    {
 13        /// <summary>
 14        /// Initializes new instance of <see cref="GeoPoint"/>.
 15        /// </summary>
 16        /// <param name="longitude">The longitude of the point.</param>
 17        /// <param name="latitude">The latitude of the point.</param>
 218        public GeoPoint(double longitude, double latitude): this(new GeoPosition(longitude, latitude), null, DefaultProp
 19        {
 220        }
 21
 22        /// <summary>
 23        /// Initializes new instance of <see cref="GeoPoint"/>.
 24        /// </summary>
 25        /// <param name="longitude">The longitude of the point.</param>
 26        /// <param name="latitude">The latitude of the point.</param>
 27        /// <param name="altitude">The altitude of the point.</param>
 028        public GeoPoint(double longitude, double latitude, double? altitude): this(new GeoPosition(longitude, latitude, 
 29        {
 030        }
 31
 32        /// <summary>
 33        /// Initializes new instance of <see cref="GeoPoint"/>.
 34        /// </summary>
 35        /// <param name="position">The position of the point.</param>
 036        public GeoPoint(GeoPosition position): this(position, null, DefaultProperties)
 37        {
 038        }
 39
 40        /// <summary>
 41        /// Initializes new instance of <see cref="GeoPoint"/>.
 42        /// </summary>
 43        /// <param name="position">The position of the point.</param>
 44        /// <param name="boundingBox">The <see cref="GeoBoundingBox"/> to use.</param>
 45        /// <param name="additionalProperties">The set of additional properties associated with the <see cref="GeoObject
 9846        public GeoPoint(GeoPosition position, GeoBoundingBox? boundingBox, IReadOnlyDictionary<string, object?> addition
 47        {
 9848            Position = position;
 9849        }
 50
 51        /// <summary>
 52        /// Gets position of the point.
 53        /// </summary>
 9854        public GeoPosition Position { get; }
 55    }
 56}