made a few fixes
This commit is contained in:
parent
67123bb970
commit
ec2a98b843
5 changed files with 52 additions and 30 deletions
|
@ -1,8 +1,11 @@
|
|||
try:
|
||||
import visual as vs
|
||||
from visual import vector as v
|
||||
from visual import vector as vv
|
||||
except ImportError:
|
||||
from vector import Vector as vector
|
||||
from vector import Vector as vv
|
||||
# from vector import Vector as vector
|
||||
pass
|
||||
from vector import Vector as v
|
||||
|
||||
import wx
|
||||
|
||||
|
@ -28,7 +31,7 @@ def drawLine(frame, position, length, direction, color = vs.color.white):
|
|||
'''
|
||||
return vs.curve(
|
||||
frame=frame,
|
||||
pos=[v(position), v(position)+v(direction).norm()*length],
|
||||
pos=[vv(position), vv(position)+vv(direction).norm()*length],
|
||||
color = color)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue