< Keeps data close for faster access.  
 More...
#include <Utils.h>
 | 
|   | World2ScreenConverter (Ogre::Matrix4 view_mtx, Ogre::Matrix4 proj_mtx, Ogre::Vector2 screen_size) | 
|   | 
| Ogre::Vector3  | Convert (Ogre::Vector3 world_pos) | 
|   | 
◆ World2ScreenConverter()
  
  
      
        
          | RoR::World2ScreenConverter::World2ScreenConverter  | 
          ( | 
          Ogre::Matrix4  | 
          view_mtx,  | 
         
        
           | 
           | 
          Ogre::Matrix4  | 
          proj_mtx,  | 
         
        
           | 
           | 
          Ogre::Vector2  | 
          screen_size  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ Convert()
  
  
      
        
          | Ogre::Vector3 RoR::World2ScreenConverter::Convert  | 
          ( | 
          Ogre::Vector3  | 
          world_pos | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - X,Y=screen pos, Z=view space pos ('Z<0' means 'in front of the camera') 
 
Definition at line 90 of file Utils.h.
 
 
◆ m_projection_matrix
  
  
      
        
          | Ogre::Matrix4 RoR::World2ScreenConverter::m_projection_matrix | 
         
       
   | 
  
private   | 
  
 
 
◆ m_screen_size
  
  
      
        
          | Ogre::Vector2 RoR::World2ScreenConverter::m_screen_size | 
         
       
   | 
  
private   | 
  
 
 
◆ m_view_matrix
  
  
      
        
          | Ogre::Matrix4 RoR::World2ScreenConverter::m_view_matrix | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: