XyzTable(x,y,z) fHtmLatLonToXyz(lat, lon) converts an lat,lon point to a table with one row containing the cartesian point (x,y,z)

Namespace: Spherical.Htm
Assembly: SphericalHtm (in SphericalHtm.dll) Version: 1.0.0.0

Syntax

C#
public static IEnumerable fHtmLatLonToXyz(
	SqlDouble lat,
	SqlDouble lon
)
Visual C++
public:
static IEnumerable^ fHtmLatLonToXyz(
	SqlDouble lat, 
	SqlDouble lon
)
F#
static member fHtmLatLonToXyz : 
        lat:SqlDouble * 
        lon:SqlDouble -> IEnumerable 

Parameters

lat
Type: System.Data.SqlTypes..::..SqlDouble
double, latitude coordinate (degrees)
lon
Type: System.Data.SqlTypes..::..SqlDouble
double, longitude coordinate (degrees)

Return Value

IEnummerable VertexTable(x float, y float, z float) with a row contining the (x,y,z) of a lat,lon point.

Examples

CopyC#
create function fHtmLatLonToXyz(lat float, lon float) 
        returns VertexTable(x float, y float, z float) 
             as external name HTM.Sql.fHtmLatLonToXyz
select * from  fHtmLatLonToXyz(115, 38)

See Also

converts xyz to lat,lon.