Are you operating in 2 dimensions at all? because otherways drop the vector concept and work with scalars