-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.py
More file actions
34 lines (25 loc) · 693 Bytes
/
demo.py
File metadata and controls
34 lines (25 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from Transformations import Trans
# create class of Trans
t = Trans("(x**4)")
# print trans test function
print(t.test())
# print out current full list to string
print(t.ListToString())
# print out current value to string
print(t.toString())
# translate t up by 1 and then print
t.translate(axis="y", val=1)
print(t.ListToString())
# reflect t over the x axis once and print
t.reflect(axis="x")
print(t.ListToString())
# reflect t over the y axis 3 times and print
t.reflect(axis="y")
print(t.ListToString())
t.reflect(axis="y")
print(t.ListToString())
t.reflect(axis="y")
print(t.ListToString())
# reflect t over the x axis once and print
t.reflect(axis="x")
print(t.ListToString())