SMIL 1.1.2
Loading...
Searching...
No Matches
example-point-minus.py
1
2import smilPython as sp
3
4# p1 and p2 shall have the same data type
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