From a58deee6489192610ff8e42eab8081f673bb4648 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 18 Dec 2019 15:09:11 +0800 Subject: Updates docs of AABB and Plane --- doc/classes/AABB.xml | 6 +++--- doc/classes/Plane.xml | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml index b64f926921..af5598f126 100644 --- a/doc/classes/AABB.xml +++ b/doc/classes/AABB.xml @@ -43,7 +43,7 @@ - Gets the area of the [AABB]. + Returns the volume of the [AABB]. @@ -182,7 +182,7 @@ - Returns [code]true[/code] if this [AABB] and [code]aabb[/code] are approximately equal, by calling [code]is_equal_approx[/code] on each component. + Returns [code]true[/code] if this [AABB] and [code]aabb[/code] are approximately equal, by calling [method @GDScript.is_equal_approx] on each component. @@ -197,7 +197,7 @@ - Ending corner. + Ending corner. This is calculated as [code]position + size[/code]. Changing this property changes [member size] accordingly. Beginning corner. diff --git a/doc/classes/Plane.xml b/doc/classes/Plane.xml index f179041327..0164943ccc 100644 --- a/doc/classes/Plane.xml +++ b/doc/classes/Plane.xml @@ -22,7 +22,7 @@ - Creates a plane from the four parameters [code]a[/code], [code]b[/code], [code]c[/code] and [code]d[/code]. + Creates a plane from the four parameters. The three components of the resulting plane's [member normal] are [code]a[/code], [code]b[/code] and [code]c[/code], and the plane has a distance of [code]d[/code] from the origin. @@ -35,7 +35,7 @@ - Creates a plane from three points. + Creates a plane from the three points, given in clockwise order. @@ -153,14 +153,19 @@ + Distance from the origin to the plane, in the direction of [member normal]. + The normal of the plane. "Over" or "Above" the plane is considered the side of the plane towards where the normal is pointing. + The [member normal]'s X component. + The [member normal]'s Y component. + The [member normal]'s Z component. -- cgit v1.2.3