Rebornbuddy
|
Basically a node is defined with a geographical position in space. It is also characterized with both collections of outgoing arcs and incoming arcs. More...
Public Member Functions | |
Node () | |
Node (float PositionX, float PositionY, float PositionZ) | |
Constructor. | |
Node (float PositionX, float PositionY, float PositionZ, int id, int[] dontconnect) | |
Node (Vector3 location, int id, int[] dontconnect) | |
Node (Vector3 location, int id, List< int > neighbors) | |
void | ChangeXYZ (float PositionX, float PositionY, float PositionZ) |
Modifies X, Y and Z coordinates. | |
override string | ToString () |
object.ToString() override. Returns the textual description of the node. | |
override bool | Equals (object O) |
Object.Equals override. Tells if two nodes are equal by comparing positions. | |
object | Clone () |
Returns a copy of this node. | |
override int | GetHashCode () |
Object.GetHashCode override. |
Static Public Member Functions | |
static double | EuclidianDistance (Node N1, Node N2) |
Returns the euclidian distance between two nodes : Sqrt(Dx�+Dy�+Dz�) | |
static double | Euclidian2DDistance (Node N1, Node N2) |
static double | SquareEuclidianDistance (Node N1, Node N2) |
Returns the square euclidian distance between two nodes : Dx�+Dy�+Dz� | |
static double | SquareEuclidian2DDistance (Node N1, Node N2) |
static double | ManhattanDistance (Node N1, Node N2) |
Returns the manhattan distance between two nodes : |Dx|+|Dy|+|Dz|. | |
static double | MaxDistanceAlongAxis (Node N1, Node N2) |
Returns the maximum distance between two nodes : Max(|Dx|, |Dy|, |Dz|) |
Public Attributes | |
int | Id |
List< int > | DontConnect |
List< int > | AlreadyVisited = new List<int>() |
List< int > | Neighbors |
Properties | |
bool | DontConnectSpecified [get] |
bool | NeighborsSpecified [get] |
bool | Passable [get, set] |
Gets the list of the arcs that lead to this node. | |
float | X [get, set] |
Gets X coordinate. | |
float | Y [get, set] |
Gets Y coordinate. | |
float | Z [get, set] |
Gets Z coordinate. | |
Vector3 | Position [get, set] |
Gets/Sets the geographical position of the node. |
Basically a node is defined with a geographical position in space. It is also characterized with both collections of outgoing arcs and incoming arcs.
Pathfinding.Node.Node | ( | ) |
Pathfinding.Node.Node | ( | float | PositionX, |
float | PositionY, | ||
float | PositionZ ) |
Constructor.
PositionX | X coordinate. |
PositionY | Y coordinate. |
PositionZ | Z coordinate. |
Pathfinding.Node.Node | ( | float | PositionX, |
float | PositionY, | ||
float | PositionZ, | ||
int | id, | ||
int[] | dontconnect ) |
Pathfinding.Node.Node | ( | Vector3 | location, |
int | id, | ||
int[] | dontconnect ) |
Pathfinding.Node.Node | ( | Vector3 | location, |
int | id, | ||
List< int > | neighbors ) |
void Pathfinding.Node.ChangeXYZ | ( | float | PositionX, |
float | PositionY, | ||
float | PositionZ ) |
Modifies X, Y and Z coordinates.
PositionX | X coordinate. |
PositionY | Y coordinate. |
PositionZ | Z coordinate. |
object Pathfinding.Node.Clone | ( | ) |
Returns a copy of this node.
override bool Pathfinding.Node.Equals | ( | object | O | ) |
Object.Equals override. Tells if two nodes are equal by comparing positions.
ArgumentException | A Node cannot be compared with another type. |
O | The node to compare with. |
Returns the euclidian distance between two nodes : Sqrt(Dx�+Dy�+Dz�)
N1 | First node. |
N2 | Second node. |
override int Pathfinding.Node.GetHashCode | ( | ) |
Object.GetHashCode override.
Returns the manhattan distance between two nodes : |Dx|+|Dy|+|Dz|.
ArgumentNullException | Argument nodes must not be null. |
N1 | First node. |
N2 | Second node. |
Returns the maximum distance between two nodes : Max(|Dx|, |Dy|, |Dz|)
ArgumentNullException | Argument nodes must not be null. |
N1 | First node. |
N2 | Second node. |
Returns the square euclidian distance between two nodes : Dx�+Dy�+Dz�
ArgumentNullException | Argument nodes must not be null. |
N1 | First node. |
N2 | Second node. |
override string Pathfinding.Node.ToString | ( | ) |
object.ToString() override. Returns the textual description of the node.
List<int> Pathfinding.Node.AlreadyVisited = new List<int>() |
List<int> Pathfinding.Node.DontConnect |
int Pathfinding.Node.Id |
List<int> Pathfinding.Node.Neighbors |
|
get |
|
get |
|
getset |
Gets the list of the arcs that lead to this node.
Gets the list of the arcs that start from this node. Gets/Sets the functional state of the node. 'true' means that the node is in its normal state. 'false' means that the node will not be taken into account (as if it did not exist).
|
getset |
Gets/Sets the geographical position of the node.
ArgumentNullException | Cannot set the Position to null. |
|
getset |
Gets X coordinate.
|
getset |
Gets Y coordinate.
|
getset |
Gets Z coordinate.