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

feat: Add BlockAreac#distanceSquared #4621

Merged
merged 8 commits into from
May 26, 2022
Merged

feat: Add BlockAreac#distanceSquared #4621

merged 8 commits into from
May 26, 2022

Conversation

shadowasphodel2919
Copy link
Contributor

Contains

Terasology/CoreWorlds#27 (comment)
Added the distanceSquared() function to the BlockArea file.
-> Implemented it by creating a calculate distance function

@pollend pollend requested a review from skaldarnar April 24, 2021 18:09
@skaldarnar
Copy link
Member

@shadowasphodel2919 thanks for updating the PR.

Please add a few test cases to https://github.com/MovingBlocks/Terasology/blob/develop/engine-tests/src/test/java/org/terasology/world/block/BlockAreaTest.java to ensure everything is working as expected.

Once that is done, we should add the dual method for BlockRegion in a follow up PR to keep the APIs consistent.

@shadowasphodel2919
Copy link
Contributor Author

shadowasphodel2919 commented Apr 28, 2021

@skaldarnar thanks I am working upon it.

@shadowasphodel2919
Copy link
Contributor Author

shadowasphodel2919 commented May 6, 2021

I have added the test cases for both the functions along with the changes to BlockAreac.

@pollend pollend added the Type: Improvement Request for or addition/enhancement of a feature label May 26, 2021
@jdrueckert
Copy link
Member

@skaldarnar @pollend are there any open issues from your side with this or can we resolve the conflicts and try to get this merged?

skaldarnar
skaldarnar previously approved these changes Jul 20, 2021
@skaldarnar skaldarnar changed the title Added distanceSquared function to BlockArea feat: Add BlockAreac#distanceSquared Aug 26, 2021
@jdrueckert jdrueckert dismissed pollend’s stale review May 26, 2022 20:48

change requests were resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Request for or addition/enhancement of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants