You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bromeon
added
c: core
Component: core (mod core_types, object, log, init, ...)
feature
Adds functionality to the library
and removed
quality-of-life
No new functionality, but improves ergonomics/internals
labels
Feb 20, 2022
867: Implement methods on Rect2 and Aabb r=Bromeon a=parasyte
The docs are based on the Godot documentation for these types, and the code is based on the C++ that implements them.
Only documented methods are implemented here. This is especially notable for the `Aabb` type, which has many methods in C++ which are not documented for GDScript.
I also took some liberties with a few method names and types. For instance, `Rect2::grow_margin` takes an enum argument, and `Aabb::get_endpoint` returns `Option<Vector3>`. These are different from the GDScript counterparts. `Aabb::get_area` was renamed to `Aabb::get_volume`, etc.
Finally, I haven't added any tests for `Aabb` because I did that file last and got bored/lazy before writing any tests (this is what happens when you are not adamant about TDD). The `Rect2` tests did help find plenty of minor bugs, so it is worthwhile to test `Aabb`.
Closes#864
Co-authored-by: Jay Oster <jay@kodewerx.org>
Co-authored-by: Jan Haller <bromeon@gmail.com>
867: Implement methods on Rect2 and Aabb r=Bromeon a=parasyte
The docs are based on the Godot documentation for these types, and the code is based on the C++ that implements them.
Only documented methods are implemented here. This is especially notable for the `Aabb` type, which has many methods in C++ which are not documented for GDScript.
I also took some liberties with a few method names and types. For instance, `Rect2::grow_margin` takes an enum argument, and `Aabb::get_endpoint` returns `Option<Vector3>`. These are different from the GDScript counterparts. `Aabb::get_area` was renamed to `Aabb::get_volume`, etc.
Finally, I haven't added any tests for `Aabb` because I did that file last and got bored/lazy before writing any tests (this is what happens when you are not adamant about TDD). The `Rect2` tests did help find plenty of minor bugs, so it is worthwhile to test `Aabb`.
Closes#864
Co-authored-by: Jay Oster <jay@kodewerx.org>
Co-authored-by: Jan Haller <bromeon@gmail.com>
Compare the
Rect2
implementation to the GodotRect2
type. I see the same issue with theAabb
type.I wanted to use the
has_point
method, but it would be nice to have all of them.The text was updated successfully, but these errors were encountered: