This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Eigen Member function from Matrix4x4 to Matrix3x3

Tags: None
(comma "," separated)
alexanderc
Registered Member
Posts
6
Karma
0
I was trying to create a member conversion function using block operations from Matrix4f to Matrix3f.
But I cannot get my head over this problem:

Code: Select all
    Matrix4f m;
    m << 1, 2, 3, 4,
         5, 6, 7, 8,
         9, 10, 11, 12,
         13, 14, 15, 16;
    Matrix3f m2 = m.block(0,0,3,3);


Thanks in advance,

Alex
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
hm, and what's the problem?
alexanderc
Registered Member
Posts
6
Karma
0
I had problem with an older version I upgraded to Eigen 3.2.1 and it works fine now.
Thanks


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]