Hamilton‐Jacobi Modelling of Relative Motion for Formation Flying