Lorentz transformation
Suppose the origins of $S$ and $S'$ coincide at $t=t'=0$, i.e. treat coordinates as time interval from the event "origins coincide". The coordinates transform as $$ \v s' = \Lambda\v s$$ $$ \pmat{ct \\ x \\ y \\ z} = \pmat{\gamma & \gamma\beta & 0 & 0 \\ \gamma\beta & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1} \pmat{ct' \\ x' \\ y' \\ z'}, \quad \pmat{ct' \\ x' \\ y' \\ z'} = \pmat{\gamma & -\gamma\beta & 0 & 0 \\ -\gamma\beta & \gamma & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1} \pmat{ct \\ x \\ y \\ z}$$ $$ \begin{cases} t &= \gamma(t' + vx'/c^2) \\ x &= \gamma(x' + vt') \\ y &= y' \\ z &= z' \end{cases}, \begin{cases} t' &= \gamma(t - vx/c^2) \\ x' &= \gamma(x - vt) \\ y' &= y \\ z' &= z \end{cases}. $$ (Derivation)
In general, a Lorentz transformation may contain a boost with spacial isometries, and reverse time. They form the Lorentz group, the set of all matrices $Λ$ satisfying $$ \begin{align*} {Λ^μ}_ρ η_{μν} {Λ^ν}_σ = η_{ρσ} \iff Λ^T ηΛ = η \end{align*} $$ where $η$ is the Minkowski metric tensor.