It should work just as the float one does since it is 100% identical except uses ints instead of floats.
Ok so you want to check if player 1 is standing directly between player 2 and 3? Like, if you tried to draw a line from player 2 to player 3, you want it to hit player 1?