Page 1 of 1

Bug report Traits.Alignment calculation documentation

Posted: Fri Jan 07, 2022 7:48 pm
by FrostedLink
Traits.Alignment states it is calculating:
"which is how well their extremes match, not how close their values are. If both sets are all zero, they're close in value but they have no extremes so the alignment is zero."

Passing {0},{0} into the calculation yields 1
Furthermore, it states the range is [-1, 1] but you can only achieve [0,1] from the current formula.

Re: Bug report Traits.Alignment calculation documentation

Posted: Fri Jan 07, 2022 9:16 pm
by Tony Li
Hi,

That's correct; the function was updated in 1.10.8 by popular customer request to compute how close the values are and return a value in the range [0,1] where 0 is opposite and 1 is complete alignment. But I missed updating the documentation. The documentation has been fixed for the upcoming release (1.10.23).

Re: Bug report Traits.Alignment calculation documentation

Posted: Fri Jan 07, 2022 10:40 pm
by FrostedLink
Excellent. I assumed it was just a documentation problem. The logic is too critical for it to have made it through testing.