| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 namespace o3d { | 73 namespace o3d { |
| 74 // Calculates the Frobenius norm of a 3x3 matrix. | 74 // Calculates the Frobenius norm of a 3x3 matrix. |
| 75 // See http://en.wikipedia.org/wiki/Matrix_norm | 75 // See http://en.wikipedia.org/wiki/Matrix_norm |
| 76 float FrobeniusNorm(const Matrix3& matrix); | 76 float FrobeniusNorm(const Matrix3& matrix); |
| 77 | 77 |
| 78 // Calculates the Frobenius norm of a 4x4 matrix. | 78 // Calculates the Frobenius norm of a 4x4 matrix. |
| 79 // See http://en.wikipedia.org/wiki/Matrix_norm | 79 // See http://en.wikipedia.org/wiki/Matrix_norm |
| 80 float FrobeniusNorm(const Matrix4& matrix); | 80 float FrobeniusNorm(const Matrix4& matrix); |
| 81 | 81 |
| 82 const float kPi = acosf(-1.0f); | 82 extern const float kPi; |
| 83 } // namespace o3d | 83 } // namespace o3d |
| 84 | 84 |
| 85 #endif // O3D_CORE_CROSS_MATH_UTILITIES_H_ | 85 #endif // O3D_CORE_CROSS_MATH_UTILITIES_H_ |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| OLD | NEW |