RenderUtil::MouseRayUtil Class Reference
#include <mouserayutil.h>
Detailed Description
Helper class to compute a world-space ray from mouse coords.(C) 2009 Radon Labs GmbH
Static Public Member Functions | |
| static Math::line | ComputeWorldMouseRay (const Math::float2 &mousePos, float length, const Math::matrix44 &invViewMatrix, const Math::matrix44 &invProjMatrix, float nearPlane) |
| compute world-space ray from mouse position (mouse position is expected in the range 0..1) | |
Member Function Documentation
| line RenderUtil::MouseRayUtil::ComputeWorldMouseRay | ( | const Math::float2 & | mousePos, | |
| float | length, | |||
| const Math::matrix44 & | invViewMatrix, | |||
| const Math::matrix44 & | invProjMatrix, | |||
| float | nearPlane | |||
| ) | [static] |
compute world-space ray from mouse position (mouse position is expected in the range 0..1)
Utility function which computes a ray in world space between the eye and the current mouse position on the near plane. Mouse position is expected in the range 0..1.