summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-12-02 21:10:53 +0100
committerGitHub <noreply@github.com>2021-12-02 21:10:53 +0100
commit3f1a8e2f7708b6a90f888789897e959471bb42b7 (patch)
tree0eccd2dfc77560c87bc15ffb6a1ee6ba9eca876d /doc/classes
parent892a5a72cd9b25dc660671b9f4244fd842884b9f (diff)
parent2017590ef6ebb27a6c3ae0d9d7880a0fa6dd9b3c (diff)
Merge pull request #55545 from akien-mga/doc-aabb-has_point
AABB: Improve docs and test for `has_point`
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/AABB.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml
index ac45682feb..bdf8a78dc3 100644
--- a/doc/classes/AABB.xml
+++ b/doc/classes/AABB.xml
@@ -158,14 +158,15 @@
<return type="bool" />
<argument index="0" name="point" type="Vector3" />
<description>
- Returns [code]true[/code] if the [AABB] contains a point.
+ Returns [code]true[/code] if the [AABB] contains a point. Points on the faces of the AABB are considered included, though float-point precision errors may impact the accuracy of such checks.
+ [b]Note:[/b] This method is not reliable for [AABB] with a [i]negative size[/i]. Use [method abs] to get a positive sized equivalent [AABB] to check for contained points.
</description>
</method>
<method name="intersection" qualifiers="const">
<return type="AABB" />
<argument index="0" name="with" type="AABB" />
<description>
- Returns the intersection between two [AABB]. An empty AABB (size 0,0,0) is returned on failure.
+ Returns the intersection between two [AABB]. An empty AABB (size [code](0, 0, 0)[/code]) is returned on failure.
</description>
</method>
<method name="intersects" qualifiers="const">