2017-09-12 17:42:36 -03:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "AABB" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 17:42:36 -03:00
<brief_description >
2023-04-28 01:35:33 +02:00
A 3D axis-aligned bounding box.
2017-09-12 17:42:36 -03:00
</brief_description>
<description >
2024-01-11 20:29:35 +01:00
The [AABB] built-in [Variant] type represents an axis-aligned bounding box in a 3D space. It is defined by its [member position] and [member size], which are [Vector3]. It is frequently used for fast overlap tests (see [method intersects]). Although [AABB] itself is axis-aligned, it can be combined with [Transform3D] to represent a rotated or skewed bounding box.
It uses floating-point coordinates. The 2D counterpart to [AABB] is [Rect2]. There is no version of [AABB] that uses integer coordinates.
[b]Note:[/b] Negative values for [member size] are not supported. With negative size, most [AABB] methods do not work correctly. Use [method abs] to get an equivalent [AABB] with a non-negative size.
[b]Note:[/b] In a boolean context, a [AABB] evaluates to [code]false[/code] if both [member position] and [member size] are zero (equal to [constant Vector3.ZERO]). Otherwise, it always evaluates to [code]true[/code].
2017-09-12 17:42:36 -03:00
</description>
<tutorials >
2021-11-15 10:43:07 +01:00
<link title= "Math documentation index" > $DOCS_URL/tutorials/math/index.html</link>
<link title= "Vector math" > $DOCS_URL/tutorials/math/vector_math.html</link>
<link title= "Advanced vector math" > $DOCS_URL/tutorials/math/vectors_advanced.html</link>
2017-09-12 17:42:36 -03:00
</tutorials>
2021-09-20 21:49:02 -05:00
<constructors >
<constructor name= "AABB" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2020-11-09 17:46:03 +01:00
<description >
2024-01-11 20:29:35 +01:00
Constructs an [AABB] with its [member position] and [member size] set to [constant Vector3.ZERO].
2020-11-09 17:46:03 +01:00
</description>
2021-09-20 21:49:02 -05:00
</constructor>
<constructor name= "AABB" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "from" type= "AABB" />
2020-11-09 17:46:03 +01:00
<description >
Constructs an [AABB] as a copy of the given [AABB].
</description>
2021-09-20 21:49:02 -05:00
</constructor>
<constructor name= "AABB" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "position" type= "Vector3" />
<param index= "1" name= "size" type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Constructs an [AABB] by [param position] and [param size].
2020-07-21 14:07:00 -04:00
</description>
2021-09-20 21:49:02 -05:00
</constructor>
</constructors>
<methods >
2021-03-18 14:44:42 +01:00
<method name= "abs" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2020-07-21 14:07:00 -04:00
<description >
2024-01-11 20:29:35 +01:00
Returns an [AABB] equivalent to this bounding box, with its width, height, and depth modified to be non-negative values.
[codeblocks]
[gdscript]
var box = AABB(Vector3(5, 0, 5), Vector3(-20, -10, -5))
var absolute = box.abs()
2024-11-11 18:21:40 +01:00
print(absolute.position) # Prints (-15.0, -10.0, 0.0)
print(absolute.size) # Prints (20.0, 10.0, 5.0)
2024-01-11 20:29:35 +01:00
[/gdscript]
[csharp]
var box = new Aabb(new Vector3(5, 0, 5), new Vector3(-20, -10, -5));
var absolute = box.Abs();
GD.Print(absolute.Position); // Prints (-15, -10, 0)
GD.Print(absolute.Size); // Prints (20, 10, 5)
[/csharp]
[/codeblocks]
[b]Note:[/b] It's recommended to use this method when [member size] is negative, as most other methods in Godot assume that the [member size]'s components are greater than [code]0[/code].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "encloses" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "with" type= "AABB" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if this bounding box [i]completely[/i] encloses the [param with] box. The edges of both boxes are included.
[codeblocks]
[gdscript]
var a = AABB(Vector3(0, 0, 0), Vector3(4, 4, 4))
var b = AABB(Vector3(1, 1, 1), Vector3(3, 3, 3))
var c = AABB(Vector3(2, 2, 2), Vector3(8, 8, 8))
print(a.encloses(a)) # Prints true
print(a.encloses(b)) # Prints true
print(a.encloses(c)) # Prints false
[/gdscript]
[csharp]
var a = new Aabb(new Vector3(0, 0, 0), new Vector3(4, 4, 4));
var b = new Aabb(new Vector3(1, 1, 1), new Vector3(3, 3, 3));
var c = new Aabb(new Vector3(2, 2, 2), new Vector3(8, 8, 8));
GD.Print(a.Encloses(a)); // Prints True
GD.Print(a.Encloses(b)); // Prints True
GD.Print(a.Encloses(c)); // Prints False
[/csharp]
[/codeblocks]
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "expand" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "to_point" type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns a copy of this bounding box expanded to align the edges with the given [param to_point], if necessary.
2021-11-11 11:31:30 +01:00
[codeblocks]
[gdscript]
2024-01-11 20:29:35 +01:00
var box = AABB(Vector3(0, 0, 0), Vector3(5, 2, 5))
box = box.expand(Vector3(10, 0, 0))
2024-11-11 18:21:40 +01:00
print(box.position) # Prints (0.0, 0.0, 0.0)
print(box.size) # Prints (10.0, 2.0, 5.0)
2024-01-11 20:29:35 +01:00
box = box.expand(Vector3(-5, 0, 5))
2024-11-11 18:21:40 +01:00
print(box.position) # Prints (-5.0, 0.0, 0.0)
print(box.size) # Prints (15.0, 2.0, 5.0)
2021-11-11 11:31:30 +01:00
[/gdscript]
[csharp]
2024-01-11 20:29:35 +01:00
var box = new Aabb(new Vector3(0, 0, 0), new Vector3(5, 2, 5));
box = box.Expand(new Vector3(10, 0, 0));
GD.Print(box.Position); // Prints (0, 0, 0)
GD.Print(box.Size); // Prints (10, 2, 5)
box = box.Expand(new Vector3(-5, 0, 5));
GD.Print(box.Position); // Prints (-5, 0, 0)
GD.Print(box.Size); // Prints (15, 2, 5)
2021-11-11 11:31:30 +01:00
[/csharp]
[/codeblocks]
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-09-21 00:33:52 +05:45
<method name= "get_center" qualifiers= "const" >
<return type= "Vector3" />
<description >
2024-01-11 20:29:35 +01:00
Returns the center point of the bounding box. This is the same as [code]position + (size / 2.0)[/code].
2021-09-21 00:33:52 +05:45
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_endpoint" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Vector3" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "idx" type= "int" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the position of one of the 8 vertices that compose this bounding box. With a [param idx] of [code]0[/code] this is the same as [member position], and a [param idx] of [code]7[/code] is the same as [member end].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_longest_axis" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the longest normalized axis of this bounding box's [member size], as a [Vector3] ([constant Vector3.RIGHT], [constant Vector3.UP], or [constant Vector3.BACK]).
[codeblocks]
[gdscript]
var box = AABB(Vector3(0, 0, 0), Vector3(2, 4, 8))
2024-11-11 18:21:40 +01:00
print(box.get_longest_axis()) # Prints (0.0, 0.0, 1.0)
2024-01-11 20:29:35 +01:00
print(box.get_longest_axis_index()) # Prints 2
2024-11-11 18:21:40 +01:00
print(box.get_longest_axis_size()) # Prints 8.0
2024-01-11 20:29:35 +01:00
[/gdscript]
[csharp]
var box = new Aabb(new Vector3(0, 0, 0), new Vector3(2, 4, 8));
GD.Print(box.GetLongestAxis()); // Prints (0, 0, 1)
2024-11-11 18:21:40 +01:00
GD.Print(box.GetLongestAxisIndex()); // Prints Z
2024-01-11 20:29:35 +01:00
GD.Print(box.GetLongestAxisSize()); // Prints 8
[/csharp]
[/codeblocks]
See also [method get_longest_axis_index] and [method get_longest_axis_size].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_longest_axis_index" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the index to the longest axis of this bounding box's [member size] (see [constant Vector3.AXIS_X], [constant Vector3.AXIS_Y], and [constant Vector3.AXIS_Z]).
For an example, see [method get_longest_axis].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_longest_axis_size" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the longest dimension of this bounding box's [member size].
For an example, see [method get_longest_axis].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_shortest_axis" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-07-15 14:35:12 +03:00
Returns the shortest normalized axis of this bounding box's [member size], as a [Vector3] ([constant Vector3.RIGHT], [constant Vector3.UP], or [constant Vector3.BACK]).
2024-01-11 20:29:35 +01:00
[codeblocks]
[gdscript]
var box = AABB(Vector3(0, 0, 0), Vector3(2, 4, 8))
2024-11-11 18:21:40 +01:00
print(box.get_shortest_axis()) # Prints (1.0, 0.0, 0.0)
2024-01-11 20:29:35 +01:00
print(box.get_shortest_axis_index()) # Prints 0
2024-11-11 18:21:40 +01:00
print(box.get_shortest_axis_size()) # Prints 2.0
2024-01-11 20:29:35 +01:00
[/gdscript]
[csharp]
var box = new Aabb(new Vector3(0, 0, 0), new Vector3(2, 4, 8));
GD.Print(box.GetShortestAxis()); // Prints (1, 0, 0)
2024-11-11 18:21:40 +01:00
GD.Print(box.GetShortestAxisIndex()); // Prints X
2024-01-11 20:29:35 +01:00
GD.Print(box.GetShortestAxisSize()); // Prints 2
[/csharp]
[/codeblocks]
See also [method get_shortest_axis_index] and [method get_shortest_axis_size].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_shortest_axis_index" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the index to the shortest axis of this bounding box's [member size] (see [constant Vector3.AXIS_X], [constant Vector3.AXIS_Y], and [constant Vector3.AXIS_Z]).
For an example, see [method get_shortest_axis].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_shortest_axis_size" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the shortest dimension of this bounding box's [member size].
For an example, see [method get_shortest_axis].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "get_support" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Vector3" />
2024-08-19 00:28:48 -07:00
<param index= "0" name= "direction" type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the vertex's position of this bounding box that's the farthest in the given direction. This point is commonly known as the support point in collision detection algorithms.
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-11-04 21:01:59 -04:00
<method name= "get_volume" qualifiers= "const" >
<return type= "float" />
<description >
2024-01-11 20:29:35 +01:00
Returns the bounding box's volume. This is equivalent to [code]size.x * size.y * size.z[/code]. See also [method has_volume].
2021-11-04 21:01:59 -04:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "grow" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "by" type= "float" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns a copy of this bounding box extended on all sides by the given amount [param by]. A negative amount shrinks the box instead.
[codeblocks]
[gdscript]
var a = AABB(Vector3(4, 4, 4), Vector3(8, 8, 8)).grow(4)
2024-11-11 18:21:40 +01:00
print(a.position) # Prints (0.0, 0.0, 0.0)
print(a.size) # Prints (16.0, 16.0, 16.0)
2024-01-11 20:29:35 +01:00
var b = AABB(Vector3(0, 0, 0), Vector3(8, 4, 2)).grow(2)
2024-11-11 18:21:40 +01:00
print(b.position) # Prints (-2.0, -2.0, -2.0)
print(b.size) # Prints (12.0, 8.0, 6.0)
2024-01-11 20:29:35 +01:00
[/gdscript]
[csharp]
var a = new Aabb(new Vector3(4, 4, 4), new Vector3(8, 8, 8)).Grow(4);
GD.Print(a.Position); // Prints (0, 0, 0)
GD.Print(a.Size); // Prints (16, 16, 16)
var b = new Aabb(new Vector3(0, 0, 0), new Vector3(8, 4, 2)).Grow(2);
GD.Print(b.Position); // Prints (-2, -2, -2)
GD.Print(b.Size); // Prints (12, 8, 6)
[/csharp]
[/codeblocks]
2017-09-12 17:42:36 -03:00
</description>
</method>
2022-08-14 21:48:13 -05:00
<method name= "has_point" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-14 21:48:13 -05:00
<param index= "0" name= "point" type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if the bounding box contains the given [param point]. By convention, points exactly on the right, top, and front sides are [b]not[/b] included.
[b]Note:[/b] This method is not reliable for [AABB] with a [i]negative[/i] [member size]. Use [method abs] first to get a valid bounding box.
2017-09-12 17:42:36 -03:00
</description>
</method>
2022-08-14 21:48:13 -05:00
<method name= "has_surface" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if this bounding box has a surface or a length, that is, at least one component of [member size] is greater than [code]0[/code]. Otherwise, returns [code]false[/code].
2017-09-12 17:42:36 -03:00
</description>
</method>
2022-08-14 21:48:13 -05:00
<method name= "has_volume" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if this bounding box's width, height, and depth are all positive. See also [method get_volume].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "intersection" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "with" type= "AABB" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the intersection between this bounding box and [param with]. If the boxes do not intersect, returns an empty [AABB]. If the boxes intersect at the edge, returns a flat [AABB] with no volume (see [method has_surface] and [method has_volume]).
[codeblocks]
[gdscript]
var box1 = AABB(Vector3(0, 0, 0), Vector3(5, 2, 8))
var box2 = AABB(Vector3(2, 0, 2), Vector3(8, 4, 4))
var intersection = box1.intersection(box2)
2024-11-11 18:21:40 +01:00
print(intersection.position) # Prints (2.0, 0.0, 2.0)
print(intersection.size) # Prints (3.0, 2.0, 4.0)
2024-01-11 20:29:35 +01:00
[/gdscript]
[csharp]
var box1 = new Aabb(new Vector3(0, 0, 0), new Vector3(5, 2, 8));
var box2 = new Aabb(new Vector3(2, 0, 2), new Vector3(8, 4, 4));
var intersection = box1.Intersection(box2);
GD.Print(intersection.Position); // Prints (2, 0, 2)
GD.Print(intersection.Size); // Prints (3, 2, 4)
[/csharp]
[/codeblocks]
[b]Note:[/b] If you only need to know whether two bounding boxes are intersecting, use [method intersects], instead.
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "intersects" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "with" type= "AABB" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if this bounding box overlaps with the box [param with]. The edges of both boxes are [i]always[/i] excluded.
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "intersects_plane" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "plane" type= "Plane" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if this bounding box is on both sides of the given [param plane].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "intersects_ray" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Variant" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "from" type= "Vector3" />
<param index= "1" name= "dir" type= "Vector3" />
2020-11-04 15:38:26 +01:00
<description >
2024-01-11 20:29:35 +01:00
Returns the first point where this bounding box and the given ray intersect, as a [Vector3]. If no intersection occurs, returns [code]null[/code].
The ray begin at [param from], faces [param dir] and extends towards infinity.
2020-11-04 15:38:26 +01:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "intersects_segment" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Variant" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "from" type= "Vector3" />
<param index= "1" name= "to" type= "Vector3" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns the first point where this bounding box and the given segment intersect, as a [Vector3]. If no intersection occurs, returns [code]null[/code].
The segment begins at [param from] and ends at [param to].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "is_equal_approx" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "aabb" type= "AABB" />
2019-11-08 08:33:48 +01:00
<description >
2024-11-01 18:04:16 -07:00
Returns [code]true[/code] if this bounding box and [param aabb] are approximately equal, by calling [method Vector3.is_equal_approx] on the [member position] and the [member size].
2019-11-08 08:33:48 +01:00
</description>
</method>
2022-08-11 16:12:27 +08:00
<method name= "is_finite" qualifiers= "const" >
<return type= "bool" />
<description >
2024-11-01 18:04:16 -07:00
Returns [code]true[/code] if this bounding box's values are finite, by calling [method Vector3.is_finite] on the [member position] and the [member size].
2022-08-11 16:12:27 +08:00
</description>
</method>
2021-03-18 14:44:42 +01:00
<method name= "merge" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "with" type= "AABB" />
2017-09-12 17:42:36 -03:00
<description >
2024-01-11 20:29:35 +01:00
Returns an [AABB] that encloses both this bounding box and [param with] around the edges. See also [method encloses].
2017-09-12 17:42:36 -03:00
</description>
</method>
2021-09-20 21:49:02 -05:00
</methods>
<members >
<member name= "end" type= "Vector3" setter= "" getter= "" default= "Vector3(0, 0, 0)" >
2024-11-17 11:53:12 +01:00
The ending point. This is usually the corner on the top-right and back of the bounding box, and is equivalent to [code]position + size[/code]. Setting this point affects the [member size].
2021-09-20 21:49:02 -05:00
</member>
<member name= "position" type= "Vector3" setter= "" getter= "" default= "Vector3(0, 0, 0)" >
2024-11-17 11:53:12 +01:00
The origin point. This is usually the corner on the bottom-left and forward of the bounding box.
2021-09-20 21:49:02 -05:00
</member>
<member name= "size" type= "Vector3" setter= "" getter= "" default= "Vector3(0, 0, 0)" >
2024-01-11 20:29:35 +01:00
The bounding box's width, height, and depth starting from [member position]. Setting this value also affects the [member end] point.
2024-11-17 11:53:12 +01:00
[b]Note:[/b] It's recommended setting the width, height, and depth to non-negative values. This is because most methods in Godot assume that the [member position] is the bottom-left-forward corner, and the [member end] is the top-right-back corner. To get an equivalent bounding box with non-negative size, use [method abs].
2021-09-20 21:49:02 -05:00
</member>
</members>
<operators >
<operator name= "operator !=" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "right" type= "AABB" />
2020-11-10 14:16:20 +01:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if the [member position] or [member size] of both bounding boxes are not equal.
2021-11-04 10:58:20 -05:00
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
2020-11-10 14:16:20 +01:00
</description>
2021-09-20 21:49:02 -05:00
</operator>
<operator name= "operator *" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "right" type= "Transform3D" />
2020-11-10 14:16:20 +01:00
<description >
2023-10-16 21:26:25 +02:00
Inversely transforms (multiplies) the [AABB] by the given [Transform3D] transformation matrix, under the assumption that the transformation basis is orthonormal (i.e. rotation/reflection is fine, scaling/skew is not).
[code]aabb * transform[/code] is equivalent to [code]transform.inverse() * aabb[/code]. See [method Transform3D.inverse].
For transforming by inverse of an affine transformation (e.g. with scaling) [code]transform.affine_inverse() * aabb[/code] can be used instead. See [method Transform3D.affine_inverse].
2020-11-10 14:16:20 +01:00
</description>
2021-09-20 21:49:02 -05:00
</operator>
<operator name= "operator ==" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "right" type= "AABB" />
2020-11-10 14:16:20 +01:00
<description >
2024-01-11 20:29:35 +01:00
Returns [code]true[/code] if both [member position] and [member size] of the bounding boxes are exactly equal, respectively.
2021-11-04 10:58:20 -05:00
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
2020-11-10 14:16:20 +01:00
</description>
2021-09-20 21:49:02 -05:00
</operator>
</operators>
2017-09-12 17:42:36 -03:00
</class>