How to get the rectangular co ordinates between two points in javascript as an object? for example foo(10, 20, 30, 40)
shold return (10, 40)
and (30, 20)
How to get the rectangular co ordinates between two points in javascript as an object? for example foo(10, 20, 30, 40)
shold return (10, 40)
and (30, 20)