-
-
Notifications
You must be signed in to change notification settings - Fork 55
Replace CC_RAD_TO_DEG/CC_DEG_TO_RAD with inline methods #20
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
Labels
enhancement
New feature or request
Comments
Why not |
So the next question is where do these new methods (and the ZERO_TOLERANCE ones) live? They are no longer constants. Maybe a new |
Yes why not! |
asmaloney
added a commit
that referenced
this issue
Apr 29, 2020
asmaloney
added a commit
that referenced
this issue
Apr 29, 2020
asmaloney
added a commit
that referenced
this issue
Apr 30, 2020
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
Apr 30, 2020
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
May 1, 2020
asmaloney
added a commit
that referenced
this issue
May 2, 2020
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
May 2, 2020
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
May 2, 2020
asmaloney
added a commit
that referenced
this issue
May 3, 2020
asmaloney
added a commit
that referenced
this issue
May 4, 2020
Adds ZERO_TOLERANCE_F and ZERO_TOLERANCE_D as replacements (see comments in CCConst.h). Part of #20
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
May 12, 2020
This was referenced May 12, 2020
Merged
Closed
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
May 15, 2020
asmaloney
added a commit
to CloudCompare/CloudCompare
that referenced
this issue
May 16, 2020
tmontaigu
pushed a commit
to tmontaigu/CloudCompare
that referenced
this issue
Mar 12, 2021
tmontaigu
pushed a commit
to tmontaigu/CloudCompare
that referenced
this issue
Mar 12, 2021
tmontaigu
pushed a commit
to tmontaigu/CloudCompare
that referenced
this issue
Mar 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature you would like
Replacing these constants with inlines would make code more readable and help eliminate casting and compiler warnings.
becomes
CCLib::radiansToDegrees( phi )
(Move strategy here from comment below.)
Because this touches a lot of math, I'm going to do this in multiple steps so it can be reviewed more easily.
RAD_TO_DEG
as deprecated, and commit CCCoreLibDEG_TO_RAD
as deprecated and commit CCCoreLibZERO_TOLERANCE
as deprecated and commit CCCoreLibRAD_TO_DEG
,DEG_TO_RAD
, andZERO_TOLERANCE
The text was updated successfully, but these errors were encountered: