Returns htmid given x,y,z in cartesian coordinates in J2000 |
Returns the Hierarchical Triangular Mesh (HTM) ID of a given point, given x,y,z in cartesian (J2000) reference frame. The vector (x,y,z) will be normalized to unit vector if non-zero and set to (1,0,0) if zero. Returns the 21-deep htmid of this object. Parameters: select dbo.fHtmXyz(1,0,0) gives 17042430230528 see also fHtmEq |
name | type | length | inout | pnum |
@x | float | 8 | input | 1 |
@y | float | 8 | input | 2 |
@z | float | 8 | input | 3 |
bigint | 8 | input | 0 |