Bug report Traits.Alignment calculation documentation

Announcements, support questions, and discussion for Love/Hate.
Post Reply
FrostedLink
Posts: 12
Joined: Fri Jan 07, 2022 7:43 pm

Bug report Traits.Alignment calculation documentation

Post 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.
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Bug report Traits.Alignment calculation documentation

Post 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).
FrostedLink
Posts: 12
Joined: Fri Jan 07, 2022 7:43 pm

Re: Bug report Traits.Alignment calculation documentation

Post by FrostedLink »

Excellent. I assumed it was just a documentation problem. The logic is too critical for it to have made it through testing.
Post Reply