instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 17, 2018, 08:20:11 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: mfmatrix4f confusions  (Read 2486 times)
kH
Newbie
*
Posts: 11


View Profile
« on: August 30, 2011, 03:44:20 pm »

Hi all,

I am currently using a MFMatrix4f value in javascript. There are several things I am curious about as I seem not to get it right:
1) Setting
var test = new MFMatrix4f();
test.length=3;
would indicate for me that I expand the empty test array to hold 3 SFMatrices. Instead I get by
print(test.toString());
12 values (instead of 3*16 values);

2) trying this operation:
test[0] = new SFMatrix4f(1,0,0,0,...);
does not work as well (the error message says invalid assignement). Is it because of the initialization?
How am I supposed to assign it correctly? Is there something like a setMatrix() ?
Thanks for your help!
Katharina
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #1 on: September 13, 2011, 05:42:03 pm »

Hi, you're right, this was a bug. Should be fixed with the next daily build.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines