This algorithm iterates over all features of an input layer and calculates the closest points from this features to each feature of a second layer. The count of the closest points will be the product of the feature counts of both layers.

Layer to calculate closest points from:

This combobox shows all vector layers of the current QGIS project. For each feature of this layer the closest points will be calculated.

Layer to calculate closest points to:

This combobox shows all vector layers of the current QGIS project. The calculated closest points will be located on features of this layer.

Output:

The destination where the result should be saved.