two points for linear trajectory