how do i calculate the displacement
If you are given a point x,y then displacement from the origin is sqrt(x^2 + y^2)
Can you be more specific?