Skip to content

Conversation

@stephengold
Copy link
Member

@stephengold stephengold commented Dec 10, 2021

The negate() function in Quaternion doesn't follow the JME naming conventions. The other math functions that modify the current instance have "Local" in their names, but negate() doesn't.

Since this inconsistency could lead to buggy code, the old method is being deprecated, and a new method negateLocal() is being added. Unlike the old method, the new one returns this to allow function chaining.

@stephengold stephengold added this to the v3.5.0 milestone Dec 10, 2021
@stephengold
Copy link
Member Author

This PR is ready for review.

@stephengold
Copy link
Member Author

Unless there's substantial discussion, I plan to integrate this PR in about 24 hours.

@stephengold stephengold merged commit 76c5b3d into master Dec 14, 2021
@stephengold stephengold deleted the sgold/quat-negate branch December 14, 2021 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants