1
2import smilPython as sp
3
4
5p1 = sp.IntPoint(10, 30, 40)
6p2 = sp.IntPoint(40, 30, 10)
7
8p3 = sp.IntPoint(p2 - p1)
9p1.printSelf(" P1 : ")
10p2.printSelf(" P2 : ")
11p3.printSelf(" Difference : ")
12p3 = sp.IntPoint(p2 + p1)
13p3.printSelf(" Sum : ")
14