fHtmGetCenterPoint(HtmID) converts an HTM triangle ID to an (x,y,z) vector of the HTM triangle centerpoint.
and returns that vector as the only row of a table.
Namespace: Spherical.HtmAssembly: SphericalHtm (in SphericalHtm.dll) Version: 1.0.0.0
Syntax
C# |
---|
public static IEnumerable fHtmGetCenterPoint(
SqlInt64 HtmID
) |
Visual C++ |
---|
public:
static IEnumerable^ fHtmGetCenterPoint(
SqlInt64 HtmID
) |
F# |
---|
static member fHtmGetCenterPoint :
HtmID:SqlInt64 -> IEnumerable
|
Parameters
- HtmID
- Type: System.Data.SqlTypes..::..SqlInt64
long: the htm ID of the triangle. an unsigned bigint.
Return Value
IEnummerable VertexTable(x float, y float, z float)
with one row contining the HTM triangle centerpoint.
Examples
CopyC#
create function fHtmGetCenterPoint(@htmID bigint.)
returns VertexTable(x float, y float, z float)
as external name HTM.Sql.fHtmGetCenterPoint
select * from fHtmGetCenterPoint(dbo.fHtmXyz(.57735,.57735,.57735))
<br /> gives: 0.577350269189626, 0.577350269189626, 0.577350269189626
See Also
gives triangle corner points.