Eyeshot 10 WinForms API Reference
GetProjectionMatrix Method (ViewCubeIcon)
Example 

WinForms Assembly > devDept.Eyeshot Namespace > ViewCubeIcon Class : GetProjectionMatrix Method
The draw data
The distance of the camera from the viewcube
Gets the projection matrix.
Syntax
'Declaration
 
Protected Overridable Function GetProjectionMatrix( _
   ByVal data As ViewportLayout.DrawSceneParams, _
   ByVal dist As Double _
) As Double()
protected virtual double[] GetProjectionMatrix( 
   ViewportLayout.DrawSceneParams data,
   double dist
)

Parameters

data
The draw data
dist
The distance of the camera from the viewcube

Return Value

The projection matrix
Remarks
Override to set an orthographic projection.
Example
Set an orthographic projection.
return Camera.myOrtho(myParams.RenderContext, -80, 80, -80, 80, dist - 150, dist + 150);
return Camera.myOrtho(myParams.RenderContext, -80, 80, -80, 80, dist - 150, dist + 150)
See Also

Reference

ViewCubeIcon Class
ViewCubeIcon Members