From 9a37ff1e34fe445a9168a7d91ae1df7d9928eb25 Mon Sep 17 00:00:00 2001
From: Ferenc Arn
Date: Wed, 5 Apr 2017 17:47:13 -0500
Subject: Added various functions basic math classes. Also enabled math checks
only for debug builds.
Added set_scale, set_rotation_euler, set_rotation_axis_angle. Addresses #2565 directly.
Added an euler angle constructor for Basis in GDScript and also exposed is_normalized for vectors and quaternions.
Various other changes mostly cosmetic in nature.
---
doc/base/classes.xml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 60 insertions(+), 2 deletions(-)
(limited to 'doc/base/classes.xml')
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 5bb85aedc..aa520d386 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -6839,6 +6839,15 @@
Create a rotation matrix which rotates around the given axis by the specified angle. The axis must be a normalized vector.
+
+
+
+
+
+
+ Create a rotation matrix (in the XYZ convention: first Z, then Y, and X last) from the specified Euler angles, given in the vector format as (third,second,first).
+
+
@@ -6863,8 +6872,7 @@
- Return Euler angles (in the XYZ convention: first Z, then Y, and X last) from the matrix. Returned vector contains the rotation angles in the format (third,second,first).
- This function only works if the matrix represents a proper rotation.
+ Assuming that the matrix is a proper rotation matrix (orthonormal matrix with determinant +1), return Euler angles (in the XYZ convention: first Z, then Y, and X last). Returned vector contains the rotation angles in the format (third,second,first).
@@ -6906,6 +6914,26 @@
Introduce an additional rotation around the given axis by phi. Only relevant when the matrix is being used as a part of [Transform]. The axis must be a normalized vector.
+
+
+
+
+
+
+ Changes only the rotation part of the [Basis] to a rotation corresponding to given Euler angles, while preserving the scaling part (as determined by get_scale).
+
+
+
+
+
+
+
+
+
+
+ Changes only the rotation part of the [Basis] to a rotation around given axis by phi, while preserving the scaling part (as determined by get_scale).
+
+
@@ -6915,6 +6943,15 @@
Introduce an additional scaling specified by the given 3D scaling factor. Only relevant when the matrix is being used as a part of [Transform].
+
+
+
+
+
+
+ Changes only the scaling part of the Basis to the specified scaling, while preserving the rotation part (as determined by get_rotation).
+
+
@@ -34942,6 +34979,13 @@
Returns a copy of the quaternion, normalized to unit length.
+
+
+
+
+ Returns whether the quaternion is normalized or not.
+
+
@@ -47093,6 +47137,13 @@ do_property].
Returns a normalized vector to unit length.
+
+
+
+
+ Returns whether the vector is normalized or not.
+
+
@@ -47317,6 +47368,13 @@ do_property].
Return a copy of the normalized vector to unit length. This is the same as v / v.length().
+
+
+
+
+ Returns whether the vector is normalized or not.
+
+
--
cgit v1.2.3-70-g09d2