The Lorentz transform is a mathematical tool for converting vectors between different inertial reference frames. Given some vector a in a frame O, the same vector in frame O′ (i.e. the vector representing the same geometric object, but with different components) is
cat′ax′ay′az′=Λcataxayaz.
Let us assume that O′ moves in the +x direction with speed v relative to O. Then the Lorentz transform matrix Λ is
Λγ=γ−γcv00−γcvγ0000100001=1−c2v21.
If the relative velocity was in the y direction, we would instead get
Λ=γ0−γcv00100−γcv0γ00001.
The Lorentz transform can be applied to any 4-vector to transform it beween frames.