Add finite check for normalize() in vector classes
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user