Registered Member
|
Hello,
I have inherited from class Matrix to add a project() method (to handle projection of homogeneous points into normal space):
Now with this code I cannot get this to work:
I need to do
or
to get things working... which is not what I am looking for. I am not sure I understand what I am doing wrong. Anyone has an idea? Thanks, Antoine. |
Moderator
|
This is because you have to reproduce all ctor of Matrix which is a pain! Better use the plugins mechanism to add methods: http://eigen.tuxfamily.org/dox/TopicCus ... Eigen.html
This way you can even make your new method available to expressions, like (a+b).project(). Another approach is to add free-functions: res = project(a); instead of res = a.project(); |
Registered Member
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft