Pathfinding.BBTree.QueryClosestXZ C# (CSharp) Method

QueryClosestXZ() public method

public QueryClosestXZ ( Vector3 p, NNConstraint constraint, float &distance, NNInfo previous ) : NNInfo
p Vector3
constraint NNConstraint
distance float
previous NNInfo
return NNInfo
		public NNInfo QueryClosestXZ (Vector3 p, NNConstraint constraint, ref float distance, NNInfo previous) {
			BBTreeBox c = root;
			
			if (c == null) {
				return previous;
			}
			
			SearchBoxClosestXZ (c,p, ref distance, constraint, ref previous);
			
			return previous;
		}