Rename AABB get_area to get_volume
This commit is contained in:
parent
70c82d9d3d
commit
dc11e73bf0
7 changed files with 40 additions and 40 deletions
|
|
@ -33,7 +33,7 @@
|
|||
#include "core/string/print_string.h"
|
||||
#include "core/variant/variant.h"
|
||||
|
||||
real_t AABB::get_area() const {
|
||||
real_t AABB::get_volume() const {
|
||||
return size.x * size.y * size.z;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ public:
|
|||
Vector3 position;
|
||||
Vector3 size;
|
||||
|
||||
real_t get_area() const; /// get area
|
||||
_FORCE_INLINE_ bool has_no_area() const {
|
||||
real_t get_volume() const;
|
||||
_FORCE_INLINE_ bool has_no_volume() const {
|
||||
return (size.x <= 0 || size.y <= 0 || size.z <= 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1748,8 +1748,8 @@ static void _register_variant_builtin_methods() {
|
|||
|
||||
bind_method(AABB, abs, sarray(), varray());
|
||||
bind_method(AABB, get_center, sarray(), varray());
|
||||
bind_method(AABB, get_area, sarray(), varray());
|
||||
bind_method(AABB, has_no_area, sarray(), varray());
|
||||
bind_method(AABB, get_volume, sarray(), varray());
|
||||
bind_method(AABB, has_no_volume, sarray(), varray());
|
||||
bind_method(AABB, has_no_surface, sarray(), varray());
|
||||
bind_method(AABB, has_point, sarray("point"), varray());
|
||||
bind_method(AABB, is_equal_approx, sarray("aabb"), varray());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue