Skip to content
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

Points in line operations #32813

Merged
merged 4 commits into from
Aug 1, 2019

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

My ongoing campaign to convert more code to use point and tripoint for clarity and type safety.

Describe the solution

This edition relates to porting tileray and adding some more useful point operations (abs, atan2, operator*=).

Additional context

Inspired by #32017.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Aug 1, 2019
@ZhilkinSerg ZhilkinSerg merged commit 65d2bba into CleverRaven:master Aug 1, 2019
@jbytheway jbytheway deleted the points_in_line_operations branch August 1, 2019 19:37
misterprimus pushed a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 2019
* Add some more point operators

- Multiply-assign
- abs
- atan2

* Convert tileray to use point mmebers

* Simplify manhattan_dist using new abs for points

* Remove unnecessary point initialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants