The Trixel type exposes the following members.
Methods
Name | Description | |
---|---|---|
CartesianToHid |
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.
| |
CartesianToHid20 |
Convert a location as a normalized Cartesian to a level-20 HtmID.
if the paramater is a Cartesian.Nan then an invalid HtmID (0)
is returned (there are no integer NaNs).
| |
Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) | |
Extend |
Extend given HID to a desired level.
The opposite of truncate. However,
because there are many descendents, the result is a range of
consecutive HIDs. The low and hi values are returned in
the out variables.
| |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
IsAncestor |
Decide whether or not a node in the tree of a given HtmID is an
ancestor of another node
| |
IsValid |
Decide if the given 64-bit integer is a valid HtmID
| |
LevelOfHid |
Returns the level number of an HtmID
| |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
NameToHid(String) |
Convert the trixel from text to 64 bit HID.
| |
NameToHid(array<Char>[]()[][], Int32) |
Convert the trixel from text to 64 bit HID
The character array must be of size eMaxNameSize, and
it is not necessary to have null termination. The
number of siginificant characters in the trixel's name
is given as a parameter.
| |
NameToTriangle |
Convert the named trixel to a triangle described
by three vertices.
The vertices are given by three arrays of three doubles.
The coordinates of the triangles are given in
the order (x, y, z) and so that the location
is on the surface of a unit sphere
| |
Parse |
Convert input string (numeric e.g. 969 or text e.g. N3021) to (long) HtmID.
| |
ToName |
Convert a 64-bit HID to a text desciption of the trixel.
| |
ToString()()()() |
Returns a String that represents the current Object.
(Inherited from Object.) | |
ToString(Int64) |
Convert a HtmID to its textual representation
| |
ToTriangle |
Get the coordinates of the 3 corners of the trixel desscribed by the
given HtmID.
| |
Truncate |
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.
| |
XyzToHidName |
Find the string representation of the HtmID to a given level of a unit vector
The vector must be normalized.
|
Fields
Name | Description | |
---|---|---|
DblTolerance |
Twice the double precision tolerance
| |
Epsilon |
This tolerance is used for comparing fractional roots
| |
Epsilon2 |
This tolerance is used for comparing angles
| |
TrixelNameLength |
Maximum number of characters in text descriptions
Whenever character arrays are used to keep the text
description of a trixel, they must be exactly eMaxNameSize
characters long
|