A translation.  
 More...
#include <gf/Transform.h>
A translation. 
- See also
 - gf::Rotation, gf::Transform 
 
 
◆ Translation() [1/2]
  
  
      
        
          | gf::Translation::Translation  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
The default translation has a null offset 
 
 
◆ Translation() [2/2]
  
  
      
        
          | gf::Translation::Translation  | 
          ( | 
          Vector2f  | 
          translationOffset | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor with an offset. 
- Parameters
 - 
  
    | translationOffset | The translation offset  | 
  
   
 
 
◆ getOffset()
  
  
      
        
          | Vector2f gf::Translation::getOffset  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Get the translation offset. 
- Returns
 - The current translation offset 
 
 
 
◆ setOffset()
  
  
      
        
          | void gf::Translation::setOffset  | 
          ( | 
          Vector2f  | 
          newOffset | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Set the translation offset. 
- Parameters
 - 
  
  
 
 
 
◆ inverseTransform()
Apply an inverse translation to a 2D point. 
- Parameters
 - 
  
    | translation | The translation  | 
    | point | The point to transform  | 
  
   
- Returns
 - The transformed point 
 
 
 
◆ transform()
Apply a translation to a 2D point. 
- Parameters
 - 
  
    | translation | The translation  | 
    | point | The point to transform  | 
  
   
- Returns
 - The transformed point 
 
 
 
◆ offset
The offset of the translation.