I made an app once that required some math structures like vectors and matrices. I overloaded the operators on the classes i created in order to get the same behavior in the app as in math:
Ex:
[1,2,3] + [1,2,3] = [2,4,6]

where [1,2,3] is a 3d vector with the values x=1, y=2, and z=3. This made the code much easier to understand and the vectors behaved just as they would in math.

(i hope i did the math right, its been a long time)