diff options
author | reduz <reduzio@gmail.com> | 2020-10-13 15:59:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-10-14 15:24:30 +0200 |
commit | b8c64184c628dba6b54b4beb5a38e292a182bd6f (patch) | |
tree | 7ffaba5d7fecfb9d16e0c47a18ffdd98117a2eea /core/math/aabb.h | |
parent | bc91e088e4503bbf1c5800282f2974011a4cc8e8 (diff) | |
download | redot-engine-b8c64184c628dba6b54b4beb5a38e292a182bd6f.tar.gz |
Refactored binding system for core types
Moved to a system using variadic templates, shared with CallableBind.
New code is cleaner, faster and allows for much better optimization of core
type functions from GDScript and GDNative.
Added Variant::InternalMethod function for direct call access.
Diffstat (limited to 'core/math/aabb.h')
-rw-r--r-- | core/math/aabb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/aabb.h b/core/math/aabb.h index bd1f3a1a36..8c08754e1c 100644 --- a/core/math/aabb.h +++ b/core/math/aabb.h @@ -39,6 +39,7 @@ * AABB / AABB (Axis Aligned Bounding Box) * This is implemented by a point (position) and the box size */ +class Variant; class AABB { public: @@ -103,6 +104,9 @@ public: return AABB(Vector3(position.x + MIN(size.x, 0), position.y + MIN(size.y, 0), position.z + MIN(size.z, 0)), size.abs()); } + Variant intersects_segment_bind(const Vector3 &p_from, const Vector3 &p_to) const; + Variant intersects_ray_bind(const Vector3 &p_from, const Vector3 &p_dir) const; + operator String() const; _FORCE_INLINE_ AABB() {} |