LA traits for Quaternion class
This commit is contained in:
		
							parent
							
								
									ad9e32ea98
								
							
						
					
					
						commit
						0ff3dbba54
					
				
							
								
								
									
										25
									
								
								quaternion.h
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								quaternion.h
									
									
									
									
									
								
							@ -30,8 +30,31 @@
 | 
				
			|||||||
#include <complex>
 | 
					#include <complex>
 | 
				
			||||||
#include <math.h>
 | 
					#include <math.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace LA_Quaternion {
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef AVOID_LA
 | 
				
			||||||
 | 
					#include "la.h"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef AVOID_LA
 | 
				
			||||||
 | 
					namespace LA_Quaternion {
 | 
				
			||||||
 | 
					template <typename T>
 | 
				
			||||||
 | 
					class Quaternion; //forward declaration
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					template <typename T>
 | 
				
			||||||
 | 
					class LA::LA_traits<LA_Quaternion::Quaternion<T> > {
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
					        static bool is_plaindata() {return true;};
 | 
				
			||||||
 | 
					        static void copyonwrite(LA_Quaternion::Quaternion<T>& x) {};
 | 
				
			||||||
 | 
					        typedef T normtype;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace LA_Quaternion {
 | 
				
			||||||
template <typename T>
 | 
					template <typename T>
 | 
				
			||||||
class Quaternion 
 | 
					class Quaternion 
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user