int inputPathLength = path.getCount(); V vec = path.getNodePosition(0); this.ray = new Ray<V>(vec.cpy(), vec.cpy()); ray.start.set(path.getNodePosition(outputIndex - 1)); ray.end.set(path.getNodePosition(inputIndex)); path.swapNodes(outputIndex, inputIndex - 1); outputIndex++; path.swapNodes(outputIndex, inputIndex - 1); path.truncatePath(outputIndex + 1);
int inputPathLength = path.getCount(); V vec = request.path.getNodePosition(0); this.ray = new Ray<V>(vec.cpy(), vec.cpy()); ray.start.set(path.getNodePosition(request.outputIndex - 1)); ray.end.set(path.getNodePosition(request.inputIndex)); path.swapNodes(request.outputIndex, request.inputIndex - 1); request.outputIndex++; path.swapNodes(request.outputIndex, request.inputIndex - 1); path.truncatePath(request.outputIndex + 1);
int inputPathLength = path.getCount(); V vec = path.getNodePosition(0); this.ray = new Ray<V>(vec.cpy(), vec.cpy()); ray.start.set(path.getNodePosition(outputIndex - 1)); ray.end.set(path.getNodePosition(inputIndex)); path.swapNodes(outputIndex, inputIndex - 1); outputIndex++; path.swapNodes(outputIndex, inputIndex - 1); path.truncatePath(outputIndex + 1);
int inputPathLength = path.getCount(); V vec = request.path.getNodePosition(0); this.ray = new Ray<V>(vec.cpy(), vec.cpy()); ray.start.set(path.getNodePosition(request.outputIndex - 1)); ray.end.set(path.getNodePosition(request.inputIndex)); path.swapNodes(request.outputIndex, request.inputIndex - 1); request.outputIndex++; path.swapNodes(request.outputIndex, request.inputIndex - 1); path.truncatePath(request.outputIndex + 1);