ViewCubeIcon.GetProjectionMatrix Method

Gets the projection matrix.
Protected Overridable Function GetProjectionMatrix( _ 
ByVal data As DrawSceneParams, _ 
ByVal dist As Double
) As Double()
This language is not supported or no code example is available.
protected virtual double[] GetProjectionMatrix( 
DrawSceneParams data
double dist 
)
This language is not supported or no code example is available.

Parameters

data
DrawSceneParams

The draw data

dist
double

The distance of the camera from the viewcube

Return Value

double[]

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);
 					
This language is not supported or no code example is available.
 return Camera.myOrtho(myParams.RenderContext, -80, 80, -80, 80, dist - 150, dist + 150)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition