All natural number solutions for the equation $a^2+b^2=2c^2$ $a$, $b$ and $c$ of all Pythagorean triplets can be written in the form
$$
\begin{split}
a &= 2mn\\
b &= m^2-n^2 \\
c &= m^2+n^2
\end{split}
$$
where $m$ and $n$ are natural numbers. For any natural number $m$ and $n$, this set of equations will give a Pythagorean triplet. And all Pythagorean triplets satisfy this set of equations.
Can $a$, $b$ and $c$ of all triplets satisfying the equation $$a^2+b^2=2c^2$$ where $a$, $b$ and $c$ are natural numbers, be written as a set of equations as for the Pythagorean triplets?
So, I need a set of equations that generates triplets that satisfy the equation $a^2+b^2=2c^2$ for any natural numbers I plug into the set of equations. Also, every natural number triplets satisfying the equation $a^2+b^2=2c^2$ must satisfy the set of equations.
I tried to derive the set of equations myself, no attempts have been successful yet.
I would like to have the proof of the set of equations, (otherwise I won't know if every triple will satisfy the set of equations)
Any comments that helps to give an insight into solving the problem are really appreciated.

Noting that
$a^2+b^2=2c^2 \Rightarrow a $ and $b$ are of same parity. Hence there exists natural numbers $u$ and $v$ such that
$$a+b=2u \textrm{ and } a-b=2v$$
Then $$a=u+v \textrm{ and }b=u-v$$
$$
\begin{gathered}
(u+v)^2+(u-v)^2=2 c^2 \Rightarrow 
u^2+v^2=c^2
\end{gathered}
$$
There exists Pythagorean triple such that
$$
\begin{aligned}
& \left\{\begin{array}{l}
u=2k m n \\
v=k(m^2-n^2) \\
c=k(m^2+n^2)
\end{array}\right. \Rightarrow  \left\{\begin{array}{l}
a=k(2 m n+m^2-n^2 )\\
b=k(2 m n-m^2+n^2) \\
c=k(m^2+n^2)
\end{array}\right. ,\\
&
\end{aligned}
$$
where $k,m,n \in N$.
