How can you obtain the equations of triangle or square? If you allow me to use absolute function |x|, I can give you the explicit forms. A triangle is given by
A square is given by
I will use the expression (called normal) in which the distance of each side from the center point equals to 1 in the following text. E.g. the normal expression of equation (2) is given by