summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-09-06 15:39:01 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-09-17 10:30:30 -0500
commitbf0213470cbfa63bbcce9f614f2cc2ecaae5fe54 (patch)
treede434807afe988d3c96019797c86f3e82920fa1f /doc
parentb8fdeb64678444103a9b6c96ef3ae2c65ad02b2f (diff)
Replace Vector3.to_diagonal_matrix with Basis.from_scale
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Basis.xml7
-rw-r--r--doc/classes/Vector3.xml7
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml
index 8fab84d885..c78b088fa8 100644
--- a/doc/classes/Basis.xml
+++ b/doc/classes/Basis.xml
@@ -71,6 +71,13 @@
A negative determinant means the basis has a negative scale. A zero determinant means the basis isn't invertible, and is usually considered invalid.
</description>
</method>
+ <method name="from_scale" qualifiers="static">
+ <return type="Basis" />
+ <argument index="0" name="scale" type="Vector3" />
+ <description>
+ Constructs a pure scale basis matrix with no rotation or shearing. The scale values are set as the diagonal of the matrix, and the other parts of the matrix are zero.
+ </description>
+ </method>
<method name="get_euler" qualifiers="const">
<return type="Vector3" />
<description>
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml
index 78251b0342..b1c549c466 100644
--- a/doc/classes/Vector3.xml
+++ b/doc/classes/Vector3.xml
@@ -412,13 +412,6 @@
Returns this vector with each component snapped to the nearest multiple of [code]step[/code]. This can also be used to round to an arbitrary number of decimals.
</description>
</method>
- <method name="to_diagonal_matrix" qualifiers="const">
- <return type="Basis" />
- <description>
- Returns a diagonal matrix with the vector as main diagonal.
- This is equivalent to a Basis with no rotation or shearing and this vector's components set as the scale.
- </description>
- </method>
</methods>
<members>
<member name="x" type="float" setter="" getter="" default="0.0">