projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974e468
)
test against an epsilon magnitude in gl_rotation_matrix()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 31 Jul 2000 15:31:29 +0000
(15:31 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 31 Jul 2000 15:31:29 +0000
(15:31 +0000)
src/mesa/main/matrix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/matrix.c
b/src/mesa/main/matrix.c
index 5db2542a6e8df644560894dd99181014f70ace77..4cf7fe63d80694c88a7e771a69881a9cc0531fb1 100644
(file)
--- a/
src/mesa/main/matrix.c
+++ b/
src/mesa/main/matrix.c
@@
-1,8
+1,8
@@
-/* $Id: matrix.c,v 1.1
8 2000/06/27 22:10:00
brianp Exp $ */
+/* $Id: matrix.c,v 1.1
9 2000/07/31 15:31:29
brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.
3
+ * Version: 3.
5
*
* Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
*
@@
-597,7
+597,7
@@
void gl_rotation_matrix( GLfloat angle, GLfloat x, GLfloat y, GLfloat z,
mag = GL_SQRT( x*x + y*y + z*z );
- if (mag
== 0.0
) {
+ if (mag
<= 1.0e-4
) {
/* generate an identity matrix and return */
MEMCPY(m, Identity, sizeof(GLfloat)*16);
return;