Define and implement parallel motion constraint class.