A
Aspidus
I wrote a simple new template class for a C++ project operating on
quaternions.
I would like to define 2 new particular operators
The first I would like to be (*) for cross product (vector product
between 2 quaternions)
The second Iwould like to be (.) for dot product (scalar product between
2 quaternions)
Is it possible?
I declared normally in the class Quaternion:
Quaternion<T> operator(*)(const Quaternion<T>& q) const;
Quaternion<T> operator(.)(const Quaternion<T>& q) const;
But I get the following errors
15 ..\Quaternion.h expected identifier before '(' token
etc etc...
Aspidus
quaternions.
I would like to define 2 new particular operators
The first I would like to be (*) for cross product (vector product
between 2 quaternions)
The second Iwould like to be (.) for dot product (scalar product between
2 quaternions)
Is it possible?
I declared normally in the class Quaternion:
Quaternion<T> operator(*)(const Quaternion<T>& q) const;
Quaternion<T> operator(.)(const Quaternion<T>& q) const;
But I get the following errors
15 ..\Quaternion.h expected identifier before '(' token
etc etc...
Aspidus