Convert min/max to direction (1/-1)
.mToDirection(m, p)
m
Min/max vector.
p
Number of objectives.
A direction vector (min = 1 and max = -1)