From c51cdaf006a1dd746a3153c6463215479b4d89e9 Mon Sep 17 00:00:00 2001
From: tetrapod00 <145553014+tetrapod00@users.noreply.github.com>
Date: Thu, 24 Oct 2024 14:49:06 -0700
Subject: [PATCH] Docs: Add note about C# differences in Variant constructors
---
doc/classes/Basis.xml | 1 +
doc/classes/Color.xml | 2 +-
doc/classes/Projection.xml | 3 ++-
doc/classes/Quaternion.xml | 1 +
doc/classes/Transform2D.xml | 1 +
doc/classes/Transform3D.xml | 1 +
6 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml
index 322d2ab9d4a..92faa55fe0d 100644
--- a/doc/classes/Basis.xml
+++ b/doc/classes/Basis.xml
@@ -25,6 +25,7 @@
Constructs a [Basis] identical to the [constant IDENTITY].
+ [b]Note:[/b] In C#, this constructs a [Basis] with all of its components set to [constant Vector3.ZERO].
diff --git a/doc/classes/Color.xml b/doc/classes/Color.xml
index 9fe42fff904..dfaa1ffc5cb 100644
--- a/doc/classes/Color.xml
+++ b/doc/classes/Color.xml
@@ -19,7 +19,7 @@
Constructs a default [Color] from opaque black. This is the same as [constant BLACK].
- [b]Note:[/b] in C#, constructs an empty color with all of its components set to [code]0.0[/code] (transparent black).
+ [b]Note:[/b] In C#, this constructs a [Color] with all of its components set to [code]0.0[/code] (transparent black).
diff --git a/doc/classes/Projection.xml b/doc/classes/Projection.xml
index 1665660da3a..f781083abfc 100644
--- a/doc/classes/Projection.xml
+++ b/doc/classes/Projection.xml
@@ -14,7 +14,8 @@
- Constructs a default-initialized [Projection] set to [constant IDENTITY].
+ Constructs a default-initialized [Projection] identical to [constant IDENTITY].
+ [b]Note:[/b] In C#, this constructs a [Projection] identical to [constant ZERO].
diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml
index 665c6335f23..c74a6453e08 100644
--- a/doc/classes/Quaternion.xml
+++ b/doc/classes/Quaternion.xml
@@ -22,6 +22,7 @@
Constructs a [Quaternion] identical to the [constant IDENTITY].
+ [b]Note:[/b] In C#, this constructs a [Quaternion] with all of its components set to [code]0.0[/code].
diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml
index 756716433e2..665e5e9d675 100644
--- a/doc/classes/Transform2D.xml
+++ b/doc/classes/Transform2D.xml
@@ -20,6 +20,7 @@
Constructs a [Transform2D] identical to [constant IDENTITY].
+ [b]Note:[/b] In C#, this constructs a [Transform2D] with all of its components set to [constant Vector2.ZERO].
diff --git a/doc/classes/Transform3D.xml b/doc/classes/Transform3D.xml
index 30c141659aa..0f943c7dd12 100644
--- a/doc/classes/Transform3D.xml
+++ b/doc/classes/Transform3D.xml
@@ -21,6 +21,7 @@
Constructs a [Transform3D] identical to the [constant IDENTITY].
+ [b]Note:[/b] In C#, this constructs a [Transform3D] with its [member origin] and the components of its [member basis] set to [constant Vector3.ZERO].