i have a QMap like this:
"1" (0.183,-0.232,0.747)
"2" (1.232, 1.322,-0.123) etc.
I need a function which input is a QVector3D and which output is the closest key to the input vector.
For Example:
InputVector(0.189,-0.234,0.755) -> Output: "1"
Any ideas how to solve this problem?