fHtmXyz(x,y,z) returns the 20-deep HtmID of the given cartesian point.
There are no error cases. All vectors are nomalized and 0,0,0 maps to 1,0,0
Namespace: Spherical.HtmAssembly: SphericalHtm (in SphericalHtm.dll) Version: 1.0.0.0
Syntax
C# |
---|
public static long fHtmXyz(
double x,
double y,
double z
) |
Visual C++ |
---|
public:
static long long fHtmXyz(
double x,
double y,
double z
) |
F# |
---|
static member fHtmXyz :
x:float *
y:float *
z:float -> int64
|
Parameters
- x
- Type: System..::..Double
double, x Cartesian coordinate
- y
- Type: System..::..Double
double, y Cartesian coordinate
- z
- Type: System..::..Double
double, z Cartesian coordinate
Return Value
HtmID: Int64 20-deep HTM id of the point
Examples
CopyC#
create function fHtmXyz(@x float, @y float, @z float)
returns bigint
as external name HTM.Sql.fHtmXyz
declare @HtmID bigint
select @HtmID = dbo.fHtmXyz(1,0,0)
See Also