-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add isunit and change norm field to property #75
Conversation
|
||
Base.@irrational INV_SQRT_EIGHT 0.3535533905932737622004 sqrt(big(0.125)) | ||
|
||
""" | ||
isunit(x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This naming is most intuitive (we say a "unit quaternion"), but issign
would be more consistent with the definition that x == sign(x)
.
I made a comment on #60 about the default tolerance for Of course, I'd certainly support keeping this PR limited to a simple replacement of |
I think we were planning to release breaking releases twice.
How about combining these changes in one breaking release? |
Yeah, makes sense to me.
If we remove This PR is very stale, and I'll open a new one. |
#108 will be merged soon, so I'll close this PR. |
As suggested in #60 (comment), this PR adds an exported function
isunit
for checking if a number is normalized. It also changes thenorm
field to a (deprecated) property, which just forwards toisunit
. All constructors and shorthands that use take a boolean argument for whether the number is unit are also deprecated.This is not a breaking change. However, it should wait until #74 is merged so that we are sure it doesn't break existing functionality.
This will close #60