[Development] Help needed with math3d classes

Sean Harmer sean.harmer at kdab.com
Tue Sep 4 16:05:58 CEST 2012


On Tuesday 04 September 2012 15:53:21 Thiago Macieira wrote:
> On terça-feira, 4 de setembro de 2012 13.47.44, Sean Harmer wrote:
> > Yes. The trouble is there is no generic compare two floats when you don't
> > know  if either of them are supposed to be near to/exactly zero. I have a
> > WIP patch here to try and resolve that but it is a very tricky problem.
> > 
> > I do not yet know if it is a zero/near-zero value comparison causing the
> > issue.
> 
> If that's a unit test, usually you'd be comparing to an expected value. If
> it's expected, you know whether it's zero or not.
> 
> Why isn't it the case there?

The test is in a nested loop over, rotation angles, rotation axes and matrix 
elements. Some values will be zero others not. I will have to look to see if I 
can isolate it better.

Sean

--
Dr Sean Harmer | sean.harmer at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions



More information about the Development mailing list