Exemplo n.º 1
0
 //=============================================================================
 public double GetHeightInPixels(double globalHeightValue, double UnitsPerCameraPixel)
 {
     // cameraScale doesnt affect on calcuations
     return(CoordinateSystemConverter._sConvertToScreenWidth(globalHeightValue, m_UnitsPerPixel));
 }
Exemplo n.º 2
0
 //=============================================================================
 public double GetGlobalHeight(double heightInPixels, double UnitsPerCameraPixel)
 {
     // cameraScale doesnt affect on calcuations
     return(CoordinateSystemConverter._sConvertToGlobalWidth(heightInPixels, m_UnitsPerPixel));
 }
Exemplo n.º 3
0
 //=============================================================================
 public Point GetLocalPoint(Point globalPoint, double UnitsPerCameraPixel, Vector cameraOffset)
 {
     return(CoordinateSystemConverter.sGetLocalPoint(globalPoint, m_UnitsPerPixel, new Vector(0.0, 0.0)) + m_OffsetPixels);
 }