Convert a Cartesian coordinate to a HID. Given a Cartesian coordinate and a level number, it returns the 64 bit HID. WARNING! x, y, z are assumed to be normalized, so this function doesn't waste time normalzing.

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

Syntax

C#
public static long CartesianToHid(
	double x,
	double y,
	double z,
	int depth
)
Visual C++
public:
static long long CartesianToHid(
	double x, 
	double y, 
	double z, 
	int depth
)
F#
static member CartesianToHid : 
        x:float * 
        y:float * 
        z:float * 
        depth:int -> int64 

Parameters

x
Type: System..::..Double
X coordinate of location
y
Type: System..::..Double
Y coordinate of location
z
Type: System..::..Double
Z coordinate of location
depth
Type: System..::..Int32
The level of the HID

Return Value

64-bit HID

See Also