Docs: Add note about C# differences in Variant constructors

This commit is contained in:
tetrapod00 2024-10-24 14:49:06 -07:00
parent 1015a481ff
commit c51cdaf006
6 changed files with 7 additions and 2 deletions

View File

@ -25,6 +25,7 @@
<return type="Basis" /> <return type="Basis" />
<description> <description>
Constructs a [Basis] identical to the [constant IDENTITY]. 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].
</description> </description>
</constructor> </constructor>
<constructor name="Basis"> <constructor name="Basis">

View File

@ -19,7 +19,7 @@
<return type="Color" /> <return type="Color" />
<description> <description>
Constructs a default [Color] from opaque black. This is the same as [constant BLACK]. 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).
</description> </description>
</constructor> </constructor>
<constructor name="Color"> <constructor name="Color">

View File

@ -14,7 +14,8 @@
<constructor name="Projection"> <constructor name="Projection">
<return type="Projection" /> <return type="Projection" />
<description> <description>
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].
</description> </description>
</constructor> </constructor>
<constructor name="Projection"> <constructor name="Projection">

View File

@ -22,6 +22,7 @@
<return type="Quaternion" /> <return type="Quaternion" />
<description> <description>
Constructs a [Quaternion] identical to the [constant IDENTITY]. 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].
</description> </description>
</constructor> </constructor>
<constructor name="Quaternion"> <constructor name="Quaternion">

View File

@ -20,6 +20,7 @@
<return type="Transform2D" /> <return type="Transform2D" />
<description> <description>
Constructs a [Transform2D] identical to [constant IDENTITY]. 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].
</description> </description>
</constructor> </constructor>
<constructor name="Transform2D"> <constructor name="Transform2D">

View File

@ -21,6 +21,7 @@
<return type="Transform3D" /> <return type="Transform3D" />
<description> <description>
Constructs a [Transform3D] identical to the [constant IDENTITY]. 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].
</description> </description>
</constructor> </constructor>
<constructor name="Transform3D"> <constructor name="Transform3D">