C#Code
C#Code
Public Member Functions | Private Attributes
Libraries.ConvertScreenTo3D Class Reference

List of all members.

Public Member Functions

 ConvertScreenTo3D ()
void Setup (Vector3 worldTopLeft, Vector3 worldBottomRight, int windowWidth, int windowHeight)
Vector3 GetWorldCoord (Point pixelPos)
 ConvertScreenTo3D ()
void Setup (Vector3 worldTopLeft, Vector3 worldBottomRight, int windowWidth, int windowHeight)
Vector3 GetWorldCoord (Point pixelPos)
 ConvertScreenTo3D ()
void Setup (Vector3 worldTopLeft, Vector3 worldBottomRight, int windowWidth, int windowHeight)
Vector3 GetWorldCoord (Point pixelPos)
 ConvertScreenTo3D ()
void Setup (Vector3 worldTopLeft, Vector3 worldBottomRight, int windowWidth, int windowHeight)
Vector3 GetWorldCoord (Point pixelPos)

Private Attributes

Libraries.Movement.TimedPointOnLine3D m_lineX
 World area viewed from the screen.
Libraries.Movement.TimedPointOnLine3D m_lineY
int m_windowWidth
 Window dimensions.
int m_windowHeight
Libraries.Movement.TimePointOnLine3D m_lineX
 World area viewed from the screen.
Libraries.Movement.TimePointOnLine3D m_lineY

Detailed Description

Convert from screen space(pixels) to world space. Assumes everything is on the same z axis location.


Constructor & Destructor Documentation

Libraries.ConvertScreenTo3D.ConvertScreenTo3D ( )

Default constructor.

Libraries.ConvertScreenTo3D.ConvertScreenTo3D ( )

Default constructor.

Libraries.ConvertScreenTo3D.ConvertScreenTo3D ( )

Default constructor.

Libraries.ConvertScreenTo3D.ConvertScreenTo3D ( )

Default constructor.


Member Function Documentation

Vector3 Libraries.ConvertScreenTo3D.GetWorldCoord ( Point  pixelPos)

Convert the given pixel coord to world space.

Vector3 Libraries.ConvertScreenTo3D.GetWorldCoord ( Point  pixelPos)

Convert the given pixel coord to world space.

Vector3 Libraries.ConvertScreenTo3D.GetWorldCoord ( Point  pixelPos)

Convert the given pixel coord to world space.

Vector3 Libraries.ConvertScreenTo3D.GetWorldCoord ( Point  pixelPos)

Convert the given pixel coord to world space.

void Libraries.ConvertScreenTo3D.Setup ( Vector3  worldTopLeft,
Vector3  worldBottomRight,
int  windowWidth,
int  windowHeight 
)

Set the values to use.

worldTopLeft, worldBottomRight - Top left and bottom right world coords visible in the window.
windowWidth, windowHeight - Window dimensions.
void Libraries.ConvertScreenTo3D.Setup ( Vector3  worldTopLeft,
Vector3  worldBottomRight,
int  windowWidth,
int  windowHeight 
)

Set the values to use.

worldTopLeft, worldBottomRight - Top left and bottom right world coords visible in the window.
windowWidth, windowHeight - Window dimensions.
void Libraries.ConvertScreenTo3D.Setup ( Vector3  worldTopLeft,
Vector3  worldBottomRight,
int  windowWidth,
int  windowHeight 
)

Set the values to use.

worldTopLeft, worldBottomRight - Top left and bottom right world coords visible in the window.
windowWidth, windowHeight - Window dimensions.
void Libraries.ConvertScreenTo3D.Setup ( Vector3  worldTopLeft,
Vector3  worldBottomRight,
int  windowWidth,
int  windowHeight 
)

Set the values to use.

worldTopLeft, worldBottomRight - Top left and bottom right world coords visible in the window.
windowWidth, windowHeight - Window dimensions.

Member Data Documentation

Libraries Movement TimePointOnLine3D Libraries.ConvertScreenTo3D::m_lineX [private]

World area viewed from the screen.

World area viewed from the screen.

Libraries Movement TimePointOnLine3D Libraries.ConvertScreenTo3D::m_lineY [private]

Window dimensions.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties