Class Key
A Key is a unique identifier for a node in a quadtree.
It contains a lower-left point and a level number. The level number
is the power of two for the size of the node envelope.
Inheritance
System.Object
Key
Assembly: Mars.Common.dll
Syntax
public class Key : object
Constructors
Key(Envelope)
Declaration
public Key(Envelope itemEnv)
Parameters
Type |
Name |
Description |
Envelope |
itemEnv |
|
Properties
Centre
Declaration
public Coordinate Centre { get; }
Property Value
Type |
Description |
Coordinate |
|
Envelope
Declaration
public Envelope Envelope { get; }
Property Value
Type |
Description |
Envelope |
|
Level
Declaration
public int Level { get; }
Property Value
Type |
Description |
System.Int32 |
|
Point
Declaration
public Coordinate Point { get; }
Property Value
Type |
Description |
Coordinate |
|
Methods
ComputeKey(Envelope)
Return a square envelope containing the argument envelope,
whose extent is a power of two and which is based at a power of 2.
Declaration
public void ComputeKey(Envelope itemEnv)
Parameters
Type |
Name |
Description |
Envelope |
itemEnv |
|
ComputeQuadLevel(Envelope)
Declaration
public static int ComputeQuadLevel(Envelope env)
Parameters
Type |
Name |
Description |
Envelope |
env |
|
Returns
Type |
Description |
System.Int32 |
|
Extension Methods