Hello Sajjadul,

On Mon, 2007-09-03 at 22:46 +0200, Sajjadul Islam wrote:
> Hello ,
> 
> I am defining a matrix as follows:
>          Matrix m;
>  85     Vec4f v1 = (1,0,0,0);
>  86     Vec4f v2 = (0,2,0,0);
>  87     Vec4f v3 = (0,0,1,0);
>  88     Vec4f v4 = (2,2,3,1);
>  89 
>  90     m = Matrix(v1,v2,v3,v4);
> What am i missing in the process?

Vec4f v1 = (1,0,0,0); is VERY different from Vec4f v1(1,0,0,0);
the first one initializes v1 with a comma expression, which basically
evaluates to the rightmost element, so 
Vec4f v1 = (1,0,0,0); is equivalent to Vec4f v1(0);

Also note that Matrix only has constructors that take 3-element vectors.

        Hope it helps,
                Carsten


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to