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

Add constructor to Quaternion class

Tags: None
(comma "," separated)
atnone
Registered Member
Posts
2
Karma
0

Add constructor to Quaternion class

Mon Dec 03, 2012 10:47 pm
Hey
can I use EIGEN_QUATERNIONBASE_PLUGIN to add an custom constructor to Quaterniond? I tried this, but couldn't get this working.

thx for any hints on this.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
No, you cannot add Quaternion's ctor like this because this plugin is for the QuaternionBase class. However, you can still write a free function constructing a Quaternion for you. You will only loose implicit conversion.


Bookmarks



Who is online

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