Click or drag to resize
SbViewVolumePerspective Method
Sets up a perspective view volume with the given field of view and aspect ratio.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 9.9.36.0.Release.d5e5954f18f5fba1171104a1eb3d2f8b0fc0d084
Syntax
public void Perspective(
	float fovy,
	float aspect,
	float nearPlane,
	float farPlane
)

Parameters

fovy
Type: SystemSingle
The field of view angle, in radians, in the y-direction.
aspect
Type: SystemSingle
The aspect ratio that determines the field of view in the x-direction. The aspect ratio is the ratio of x (width) to y (height).
nearPlane
Type: SystemSingle
The distance from the viewer to the near clipping plane (always positive).
farPlane
Type: SystemSingle
The distance from the viewer to the far clipping plane (always positive).
Remarks
The parameters are the same as for the OpenGL gluPerspective() routine, except that the field fovy is specified in radians.
See Also