Click or drag to resize

GraphFarthestNode Method

This function will find the farthest node from a geographical position in space.

Namespace:  Pathfinding
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public Node FarthestNode(
	float PtX,
	float PtY,
	float PtZ,
	out float Distance,
	bool IgnorePassableProperty
)

Parameters

PtX
Type: SystemSingle
X coordinate of the point from which you want the closest node.
PtY
Type: SystemSingle
Y coordinate of the point from which you want the closest node.
PtZ
Type: SystemSingle
Z coordinate of the point from which you want the closest node.
Distance
Type: SystemSingle
The distance to the closest node.
IgnorePassableProperty
Type: SystemBoolean
if 'false', then nodes whose property Passable is set to false will not be taken into account.

Return Value

Type: Node
The closest node that has been found.
See Also