CopyLocation Method

[VB]

Public Sub CopyLocation(ByVal sourcePoint As GeoCalcNET.GeodeticPoint)

[C#]

public void CopyLocation(GeoCalcNET.GeodeticPoint sourcePoint)

 

Description

The CopyLocation method changes the current instance such that its location matches that of the specified point.  The Units used with each of the coordinates will not be affected by this method.

 

Example

[VB]

Private Sub GeoCalcNET_GeodeticPoint_CopyLocation(ByVal pt As GeoCalcNET.GeodeticPoint)

Dim newPt As GeoCalcNET.GeodeticPoint = New GeoCalcNET.GeodeticPoint

newPt.CopyLocation(pt)

End Sub

 

[C#]

private void GeoCalcNET_GeodeticPoint_CopyLocation(GeoCalcNET.GeodeticPoint pt)

{

GeoCalcNET.GeodeticPoint pt2 = new GeoCalcNET.GeodeticPoint();

pt2.CopyLocation(pt);

}