Position Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Position(IList<Double>) |
Initializes a new instance of the Position class in the Azure Cosmos DB service. |
Position(Double, Double) |
Initializes a new instance of the Position class in the Azure Cosmos DB service. |
Position(Double, Double, Nullable<Double>) |
Initializes a new instance of the Position class in the Azure Cosmos DB service. |
Position(IList<Double>)
- Source:
- Position.cs
Initializes a new instance of the Position class in the Azure Cosmos DB service.
public Position (System.Collections.Generic.IList<double> coordinates);
new Microsoft.Azure.Cosmos.Spatial.Position : System.Collections.Generic.IList<double> -> Microsoft.Azure.Cosmos.Spatial.Position
Public Sub New (coordinates As IList(Of Double))
Parameters
Applies to
Position(Double, Double)
- Source:
- Position.cs
Initializes a new instance of the Position class in the Azure Cosmos DB service.
public Position (double longitude, double latitude);
new Microsoft.Azure.Cosmos.Spatial.Position : double * double -> Microsoft.Azure.Cosmos.Spatial.Position
Public Sub New (longitude As Double, latitude As Double)
Parameters
- longitude
- Double
Longitude value.
- latitude
- Double
Latitude value.
Applies to
Position(Double, Double, Nullable<Double>)
- Source:
- Position.cs
Initializes a new instance of the Position class in the Azure Cosmos DB service.
public Position (double longitude, double latitude, double? altitude);
new Microsoft.Azure.Cosmos.Spatial.Position : double * double * Nullable<double> -> Microsoft.Azure.Cosmos.Spatial.Position
Public Sub New (longitude As Double, latitude As Double, altitude As Nullable(Of Double))
Parameters
- longitude
- Double
Longitude value.
- latitude
- Double
Latitude value.
Applies to
Azure SDK for .NET