Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: core/cross/math_utilities.h

Issue 194061: This fixes some warnings in the Linux release build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | core/cross/math_utilities.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | core/cross/math_utilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698