Tesla Graphics Engine Documentation (January 2012)
GetWorldCoordinates Method (screenPosition, result)
Tesla
►
Tesla.Graphics
►
ICamera
►
GetWorldCoordinates(Vector3
%
, Vector3
%
)
C#
Gets the world position based on the x,y screen position.
Declaration Syntax
C#
void
GetWorldCoordinates
(
ref
Vector3
screenPosition
,
out
Vector3
result
)
Parameters
screenPosition
(
Vector3
%
)
Screen position (x,y) and z being the depth (0 - near, 1 - far planes)
result
(
Vector3
%
)
Result to store constructed world position
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)