-
-
Notifications
You must be signed in to change notification settings - Fork 249
Reimplemented Aabb.rs in godot-core/src/builtin #280
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
Conversation
Thanks! A lot of suggestions from #276 are unaddressed in this pull request. Can we close that one first, with only doc aliases (no AABB features)? Otherwise we have a lot of overlap and repeated reviews. 🙂 |
63a2c9b
to
6548821
Compare
I think it should be good now? |
bors try |
API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-280 |
tryBuild failed: |
@Cankyre this fails with the double builds. To verify that it passes, you can run the tests locally using |
Should pass the tests now! 👍 |
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.
Thanks a lot for the huge implementation! 👍
I had quite an in-depth look at it and found a few more things 🙂
bors try
/// Returns the volume of the AABB. | ||
/// | ||
/// _Godot equivalent: `AABB.get_volume()`_ | ||
#[inline] | ||
pub fn volume(&self) -> real { | ||
self.assert_nonnegative(); | ||
self.size.x * self.size.y * self.size.z | ||
} |
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.
Needs a # Panics
section.
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
bors try |
tryMerge conflict. |
2c3ded5
to
91629d6
Compare
@Bromeon seems good to go! |
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.
Thanks a lot for the patience and all the updates!
A few methods could take their parameter by borrow for consistency (I marked them), other than that good!
91629d6
to
23b3c2f
Compare
Thanks a lot! bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Added all methods and tests to Aabb.rs in godot-builtin