Click or drag to resize

CoordinatePart Constructor (Double, CoordinateType)

Creates a populated CoordinatePart from a signed degree value.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public CoordinatePart(
	double value,
	CoordinateType cType
)

Parameters

value
Type: SystemDouble
Coordinate part signed value
cType
Type: CoordinateSharpCoordinateType
Coordinate part type
Examples
The following example creates a populated latitudinal coordinate part from a signed value and assigns it to a Coordinate object.
//Create a new default coordinate
Coordinate c = new Coordinate();

//Create a coordinate part using a the signed latitude 25.6°.
CoordinatePart cp = new CoordinatePart(25.6, CoordinateType.Lat);

//Assign the latitudinal value to the coordinate.
c.Latitude = cp;
See Also