I had a hard time finding a good title for this. Feel free to edit it if you find something more appropiate.
What I'm trying to do is finding a function such that, given a point $C$ (center), gives the square-wise distance from any point to $C$.
Now, for a simple definition of square-wise dist, imagine a square of a fixed size centered at $C$ and aligned to the $x$ and $y$ axis. I want each point of this square to be at the same square-wise distance from $C$, so it's the same as euclidean distance but changing circle by square.
How would I go into computing that? I can't wrap my head around it...