mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-25 09:24:17 +00:00 
			
		
		
		
	 7fc1f8019f
			
		
	
	7fc1f8019f
	
	
	
		
			
			* Implement ViewROI and base classes * Clean up Orientable header * Move tgl to tgl subdirectory, and use target_include_directories * Move classes to submodules * Fix some missed references * Fix/match UpdateWorldData * Renaming / removing MxTypes / refactoring * Consistent naming for Matrix * Adjust format action * Add Vector3/Vector4 to Data vector * Add TGL comment * Add a comment about Matrix4Impl * Add ROI comment --------- Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com> Co-authored-by: Christian Semmler <mail@csemmler.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			698 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			698 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef REALTIME_H
 | |
| #define REALTIME_H
 | |
| 
 | |
| #include "matrix.h"
 | |
| 
 | |
| #define NORMVEC3(dst, src)                                                                                             \
 | |
| 	{                                                                                                                  \
 | |
| 		double len = sqrt(NORMSQRD3(src));                                                                             \
 | |
| 		VDS3(dst, src, len);                                                                                           \
 | |
| 	}
 | |
| 
 | |
| void CalcLocalTransform(
 | |
| 	const Vector3Impl& p_posVec,
 | |
| 	const Vector3Impl& p_dirVec,
 | |
| 	const Vector3Impl& p_upVec,
 | |
| 	Matrix4Impl& p_outMatrix
 | |
| );
 | |
| 
 | |
| #endif // REALTIME_H
 |