Decide whether or not a node in the tree of a given HtmID is an
ancestor of another node
Namespace: Spherical.HtmAssembly: SphericalHtm (in SphericalHtm.dll) Version: 1.0.0.0
Syntax
| C# |
|---|
public static bool IsAncestor(
long grandpa,
long hid
) |
| Visual C++ |
|---|
public:
static bool IsAncestor(
long long grandpa,
long long hid
) |
| F# |
|---|
static member IsAncestor :
grandpa:int64 *
hid:int64 -> bool
|
Parameters
- grandpa
- Type: System..::..Int64
64-bit HtmID, candidate for ancestry
- hid
- Type: System..::..Int64
64-bit HtmID who is the potential descendant
Return Value
true if grandpa is an ancestor of hid
See Also