mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
281 stars 185 forks source link

Orientation equality check fails #2194

Closed frankNiessen closed 13 hours ago

frankNiessen commented 3 weeks ago

Hi,

I found a bug I think:

ori = orientation.rand
ori == ori
%ans =
%
%  logical
%
%   1
ori = rotation.inversion * ori
ori == ori
%ans =
%
%  logical
%
%   0

Best wishes Frank

frankNiessen commented 3 weeks ago

To give a bit more context: If I do the same using a rotation there is no issue. Following the call stack, the rotation equality is evaluated by taking the quaternion dot product, which is 1. For the orientation the itimes method is selected. Here the resulting dot product is 0.

ralfHielscher commented 2 weeks ago

Hi Frank, thank you for pointing this out. This obviously needs to be fixed.

Ralf.