Removed unused variables, add some constants numbers
This commit is contained in:
parent
6f38aeef52
commit
ed1c4bc77d
41 changed files with 112 additions and 91 deletions
|
|
@ -739,8 +739,8 @@ void Basis::get_axis_angle(Vector3 &r_axis, real_t &r_angle) const {
|
|||
if ((xx > yy) && (xx > zz)) { // elements[0][0] is the largest diagonal term
|
||||
if (xx < epsilon) {
|
||||
x = 0;
|
||||
y = 0.7071;
|
||||
z = 0.7071;
|
||||
y = Math_SQRT12;
|
||||
z = Math_SQRT12;
|
||||
} else {
|
||||
x = Math::sqrt(xx);
|
||||
y = xy / x;
|
||||
|
|
@ -748,9 +748,9 @@ void Basis::get_axis_angle(Vector3 &r_axis, real_t &r_angle) const {
|
|||
}
|
||||
} else if (yy > zz) { // elements[1][1] is the largest diagonal term
|
||||
if (yy < epsilon) {
|
||||
x = 0.7071;
|
||||
x = Math_SQRT12;
|
||||
y = 0;
|
||||
z = 0.7071;
|
||||
z = Math_SQRT12;
|
||||
} else {
|
||||
y = Math::sqrt(yy);
|
||||
x = xy / y;
|
||||
|
|
@ -758,8 +758,8 @@ void Basis::get_axis_angle(Vector3 &r_axis, real_t &r_angle) const {
|
|||
}
|
||||
} else { // elements[2][2] is the largest diagonal term so base result on this
|
||||
if (zz < epsilon) {
|
||||
x = 0.7071;
|
||||
y = 0.7071;
|
||||
x = Math_SQRT12;
|
||||
y = Math_SQRT12;
|
||||
z = 0;
|
||||
} else {
|
||||
z = Math::sqrt(zz);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue