Prechádzať zdrojové kódy

Cross-reference AABB and Rect2 in the class reference

(cherry picked from commit e9eddb4f1f4a443d9fb46e76aecb6b262621f664)
Hugo Locurcio 5 rokov pred
rodič
commit
6036fdab70
2 zmenil súbory, kde vykonal 6 pridanie a 2 odobranie
  1. 3 1
      doc/classes/AABB.xml
  2. 3 1
      doc/classes/Rect2.xml

+ 3 - 1
doc/classes/AABB.xml

@@ -4,7 +4,9 @@
 		Axis-Aligned Bounding Box.
 	</brief_description>
 	<description>
-		AABB consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
+		[AABB] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
+		It uses floating-point coordinates. The 2D counterpart to [AABB] is [Rect2].
+		[b]Note:[/b] Unlike [Rect2], [AABB] does not have a variant that uses integer coordinates.
 	</description>
 	<tutorials>
 		<link>https://docs.godotengine.org/en/latest/tutorials/math/index.html</link>

+ 3 - 1
doc/classes/Rect2.xml

@@ -4,7 +4,9 @@
 		2D axis-aligned bounding box.
 	</brief_description>
 	<description>
-		Rect2 consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
+		[Rect2] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
+		It uses floating-point coordinates.
+		The 3D counterpart to [Rect2] is [AABB].
 	</description>
 	<tutorials>
 		<link>https://docs.godotengine.org/en/latest/tutorials/math/index.html</link>