vtrvtr Posted October 4, 2016 Share Posted October 4, 2016 (edited) Hello, simple question: what's the proper syntax for matrices in VEX? Exemple: vector a = {0,0,1}; vector b = {0,1,0}; vector c = {1,0,0}; matrix3 X = {a, b, c}; I would imagined this would work, but it doesn't, nor does the expanded version ({{a.x, a.y, a.z}...), why is that? I have the impression I'm missing something basic, but anyway Thank you. Edited October 4, 2016 by vtrvtr Solved Quote Link to comment Share on other sites More sharing options...
fsimerey Posted October 4, 2016 Share Posted October 4, 2016 Like vectors, you can't assign a variable inside {}, use the function set() matrix3 X = set(a, b, c); 1 Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted October 4, 2016 Author Share Posted October 4, 2016 That was a gotcha with vectors for me and now again. Oh, well, thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.