Mass in special relativity (including the kinetic energy of the gas) only when it is measured in the center of momentum frame. Just as is the case for single particles, the calculated "rest mass" of such a container of gas does not change when it is in motion, although its "relativistic mass" does change. The container may even be subjected to a force which gives it an overall velocity, or else (equivalently) it may be viewed from an inertial frame in which it has an overall velocity (that is, technically, a frame in which its center of mass has a velocity). In this case,
Velocity-addition formula appear there must be inverted here: This matrix rotates the a pure time-axis vector to , and all its columns are relativistically orthogonal to one another, so it defines a Lorentz transformation. If a fly is moving with four-velocity in the ship frame, and it is boosted by multiplying by the matrix above, the new four-velocity in the shore frame is , Dividing by the time component and substituting for the components of the four-vectors and in terms of the components of the three-vectors and gives the relativistic composition law as The form of the relativistic composition law can be