feat: updated engine

This commit is contained in:
Sara Gerretsen 2026-07-10 17:04:34 +02:00
parent cbe99774ff
commit f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions

View file

@ -54,7 +54,8 @@ void Basis::invert() {
}
void Basis::orthonormalize() {
// Gram-Schmidt Process
// Orthonormalizable check is done in Vector3 class below.
// Gram-Schmidt Process:
Vector3 x = get_column(0);
Vector3 y = get_column(1);
@ -754,7 +755,7 @@ void Basis::get_axis_angle(Vector3 &r_axis, real_t &r_angle) const {
#endif
*/
// https://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/index.htm
// https://www.euclideanspace.com/math/geometry/rotations/conversions/matrixToAngle/index.htm
real_t x, y, z; // Variables for result.
if (Math::is_zero_approx(rows[0][1] - rows[1][0]) && Math::is_zero_approx(rows[0][2] - rows[2][0]) && Math::is_zero_approx(rows[1][2] - rows[2][1])) {
// Singularity found.