a 2d unit (vector)  
 More...
a 2d unit (vector) 
Definition at line 73 of file vec2.h.
 
◆ n2() [1/2]
asserts that the length is 1 
 
 
◆ n2() [2/2]
asserts that the length is 1 
 
 
◆ get_data_ptr()
Returns an array to the data. 
 
 
◆ get_flipped_y()
      
        
          | n2 eu::n2::get_flipped_y  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns a new unit vector where the sign of the y component is flipped. 
 
 
◆ get_rotated()
Assumes the unit vector is a point and returns it if it was rotated around (0,0) 
 
 
◆ is_valid()
      
        
          | bool eu::n2::is_valid  | 
          ( | 
           | ) | 
           const | 
        
      
 
returns false if the length isn't 1 
 
 
◆ operator-()
      
        
          | n2 eu::n2::operator-  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
The documentation for this struct was generated from the following file: