-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Add BlockAreac#distanceSquared #4621
Conversation
engine/src/main/java/org/terasology/engine/world/block/BlockArea.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/terasology/engine/world/block/BlockArea.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/terasology/engine/world/block/BlockArea.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/terasology/engine/world/block/BlockArea.java
Outdated
Show resolved
Hide resolved
@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. |
@skaldarnar thanks I am working upon it. |
engine/src/main/java/org/terasology/engine/world/block/BlockArea.java
Outdated
Show resolved
Hide resolved
I have added the test cases for both the functions along with the changes to |
engine-tests/src/test/java/org/terasology/world/block/BlockAreaTest.java
Outdated
Show resolved
Hide resolved
@skaldarnar @pollend are there any open issues from your side with this or can we resolve the conflicts and try to get this merged? |
Contains
Terasology/CoreWorlds#27 (comment)
Added the
distanceSquared()
function to theBlockArea
file.-> Implemented it by creating a calculate distance function