2. Sub function¶
Ad hoc polymorphism ‘subb’ function
Parameters |
Type |
Description |
p |
Point |
The second operand as Point |
2.1. Returns¶
- Point
The translated point.
2.2. Examples¶
>>> a=Point(1,1,1)
>>> b=Point(2,2,2)
>>> print(a-b)
( -1.0 , -1.0 , -1.0 )
printed