Add finite check for normalize() in vector classes
This commit is contained in:
parent
a3e84cc2af
commit
db90de4dbd
11 changed files with 69 additions and 20 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue