Truncate the HtmID to a lower level (hence fewer bits) The HtmID of a trixel implicitly contains the level of the trixel. When you need a lower level trixel that contains the trixel of the given HtmID, this function gives it to you. If the level of the given HtmID is less than or equal to the desired level, then there is no change.

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

Syntax

C#
public static long Truncate(
	long htmid,
	int level
)
Visual C++
public:
static long long Truncate(
	long long htmid, 
	int level
)
F#
static member Truncate : 
        htmid:int64 * 
        level:int -> int64 

Parameters

htmid
Type: System..::..Int64
The given HtmID
level
Type: System..::..Int32
Desired level

Return Value

HtmID of lower level trixel

See Also