diff options
author | Learn OpenGL ES <admin@learnopengles.com> | 2013-09-19 14:21:05 -0400 |
---|---|---|
committer | Learn OpenGL ES <admin@learnopengles.com> | 2013-09-19 14:21:05 -0400 |
commit | ff1dd2aa99bd8261623452e430fa276f05119702 (patch) | |
tree | 59230883db8d00b898c5d6c7fce3d105dd000610 | |
parent | 6f985fb04f798b1412a43c133d1f14c58f3ebb00 (diff) | |
download | linmath-ff1dd2aa99bd8261623452e430fa276f05119702.tar.gz linmath-ff1dd2aa99bd8261623452e430fa276f05119702.tar.xz linmath-ff1dd2aa99bd8261623452e430fa276f05119702.zip |
Update 'const' coding style.
-rw-r--r-- | linmath.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -334,8 +334,8 @@ static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, fl static inline void mat4x4_perspective(mat4x4 m, float y_fov_in_degrees, float aspect, float n, float f) { /* Adapted from Android's OpenGL Matrix.java. */ - const float angle_in_radians = (float) (y_fov_in_degrees * M_PI / 180.0); - const float a = (float) (1.0 / tan(angle_in_radians / 2.0)); + float const angle_in_radians = (float) (y_fov_in_degrees * M_PI / 180.0); + float const a = (float) (1.0 / tan(angle_in_radians / 2.0)); m[0][0] = a / aspect; m[1][0] = 0.0f; |