aboutsummaryrefslogblamecommitdiffstats
path: root/src/math.c
blob: ab4fa444545f6ee38b9c7477786279cd59d1d6c2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                            
                  
                   
                   
                   
 
                   

                 
                                
 


                                                                                                                      


                                                   
                                             
                     
   
                                              

                                                                                                                 
                                      

                                                                                                 



                                         
 

                                                                                                               



                                                        
                                                                                                                  



                                                        
                                                                                                                       




                                                        



                
                                          

                                                 
                                            

                          
                                   
               

                             


                                 
                                                                      
 
 
                        
                                             

 

                        
                                                      
 
                                                                               
                                          

                                       
 

























































                                                                                                                          




                                      















                                                            
                       











                                                                                 
            
                     


               
                     

                 










                                                                      







                                                                                
                                                                                 


                                                                                                                                                                           
             
                                                    


                     
       








                                              




                                                                               


                                                                                                  






















                                                                           
                                   









                                                                       
                                                                                    

                                                

                                                                                     
   
                                   




                                                             

                                                                             
                                                                  

                                                                              












                                                                       
 
   
                                   


















                                                                       















                                                                        




















































                                                                                                
#define _POSIX_C_SOURCE 200809L //for strdup
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include "common.h"
#include "math.h"

extern struct hvr_global global;

//ONE OF THESE DAYS I NEED TO RENAME ALL THE GROUP_ROT SHIT TO GROUP_REL since it doesn't just have rotations anymore.

//thi