Add finite check for normalize() in vector classes

This commit is contained in:
Silc Lizard (Tokage) Renew
2026-02-18 17:28:27 +09:00
parent a3e84cc2af
commit db90de4dbd
11 changed files with 69 additions and 20 deletions
+2 -1
View File
@@ -145,7 +145,8 @@ void Transform2D::translate_local(const Vector2 &p_translation) {
}
void Transform2D::orthonormalize() {
// Gram-Schmidt Process
// Orthonormalizable check is done in Vector2 class below.
// Gram-Schmidt Process:
Vector2 x = columns[0];
Vector2 y = columns[1];