Try to deal with complaints about indentation IN A COMMENT!
This commit is contained in:
parent
40e412d5c1
commit
f2f89ffe56
1 changed files with 7 additions and 6 deletions
|
|
@ -77,13 +77,14 @@ class Vec2D(tuple):
|
|||
for implementing turtle graphics.
|
||||
May be useful for turtle graphics programs also.
|
||||
Derived from tuple, so a vector is a tuple!
|
||||
|
||||
Provides (for a, b vectors, k number):
|
||||
a+b vector addition
|
||||
a-b vector subtraction
|
||||
a*b inner product
|
||||
k*a and a*k multiplication with scalar
|
||||
|a| absolute value of a
|
||||
a.rotate(angle) rotation
|
||||
a+b vector addition
|
||||
a-b vector subtraction
|
||||
a*b inner product
|
||||
k*a and a*k multiplication with scalar
|
||||
|a| absolute value of a
|
||||
a.rotate(angle) rotation
|
||||
"""
|
||||
def __init__(self, x, y):
|
||||
super().__init__((x, y))
|
||||
|
|
|
|||
Loading…
Reference in a new issue