This page contains reference documentation for the GetViewRay function. Undocumented
int GetViewRay( double Undocumented, double Undocumented, Vec Undocumented, Vec Undocumented )
Function parameters are as follows:
Examples are as follows:
function void GetViewportCenter( ModelView activeView, Vec center )
{
Vec end = new Vec;
activeView.GetViewRay(
activeView.GetViewWidth() * 0.5,
activeView.GetViewHeight() * 0.5,
center,
end );
center.Blend( end, 64.0f / ( center.GetDistance( end ) ) );
delete end;
}
For sample code: