Add some debugging.
This commit is contained in:
19
debug/vecrender.ks
Normal file
19
debug/vecrender.ks
Normal file
@ -0,0 +1,19 @@
|
||||
@lazyglobal off.
|
||||
|
||||
local draws is list().
|
||||
|
||||
function DrawVectorWithComponents {
|
||||
parameter vec.
|
||||
|
||||
set draws to list().
|
||||
local d is 0.
|
||||
|
||||
set d to VecDraw(V(0,0,0), vec, WHITE, "v", 1.0, true).
|
||||
list:add(d).
|
||||
set d to VecDraw(V(0,0,0), V(vec:X,0,0), RED, "x", 1.0, true).
|
||||
list:add(d).
|
||||
set d to VecDraw(V(0,0,0), V(0,vec:Y,0), GREEN, "y", 1.0, true).
|
||||
list:add(d).
|
||||
set d to VecDraw(V(0,0,0), V(0,0,vec:Z), BLUE, "z", 1.0, true).
|
||||
list:add(d).
|
||||
}
|
Reference in New Issue
Block a user