mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Fix a couple of typos in rotation matrix
This commit is contained in:
		
							parent
							
								
									3afd45d49c
								
							
						
					
					
						commit
						fa54885600
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -305,8 +305,8 @@ wlsc_matrix_rotate(struct wlsc_matrix *matrix,
 | 
				
			||||||
	GLdouble s = sin(angle);
 | 
						GLdouble s = sin(angle);
 | 
				
			||||||
	struct wlsc_matrix rotate = {
 | 
						struct wlsc_matrix rotate = {
 | 
				
			||||||
		{ x * x * (1 - c) + c,     y * x * (1 - c) + z * s, x * z * (1 - c) - y * s, 0,
 | 
							{ x * x * (1 - c) + c,     y * x * (1 - c) + z * s, x * z * (1 - c) - y * s, 0,
 | 
				
			||||||
		  x * y * (1 - c) - z * s, y * y * (1 - c) + c,     y * z * (1 - c) - x * s, 0, 
 | 
							  x * y * (1 - c) - z * s, y * y * (1 - c) + c,     y * z * (1 - c) + x * s, 0, 
 | 
				
			||||||
		  x * z * (1 - c) + y * x, y * z * (1 - c) - x * s, z * z * (1 - c) + c,     0,
 | 
							  x * z * (1 - c) + y * s, y * z * (1 - c) - x * s, z * z * (1 - c) + c,     0,
 | 
				
			||||||
		  0, 0, 0, 1 }
 | 
							  0, 0, 0, 1 }
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue