Substitute into the constant velocity equation, given below, the point and time data to calculate the magnitude of the velocity (the rate of displacement in the direction that the point moves).
Vc = SQRT ((Y2 - Y1)^2 + (X2-X1)^2)/(T2-T1)
where
Vc is the magnitude of the constant velocity (displacement per unit time)
Y2 is the y coordinate of the point at time T2 in two-dimensional space
Y1 is the y coordinate of the point at time T1 in two-dimensional space
X2 is the x coordinate of the point at time T2 in two-dimensional space
X1 is the x coordinate of the point at time T1 in two-dimensional space
Substitute the coordinates of the starting point and the ending point of the point or object in the equation below to calculate the direction of the constant velocity (the angle relative to the x-axis in a two-dimensional coordinate system).
Ac = arctan ((Y2 - Y1)/(X2-X1))/(T2-T1)
where
Ac is the direction of the constant velocity expressed as an angle
Y2 is the y coordinate of the point at time T2 in two-dimensional space
Y1 is the y coordinate of the point at time T1 in two-dimensional space
X2 is the x coordinate of the point at time T2 in two-dimensional space
X1 is the x coordinate of the point at time T1 in two-dimensional space
Indicate that the constant velocity has a magnitude component equal to Vc and a direction component equal to Ac to fully define the constant velocity in terms of its magnitude and direction.