SbViewVolume.Perspective Method |
Sets up a perspective view volume with the given field of view and aspect ratio.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 9.9.13.0.Release.1490cabe7ee249bd6cc986579d4e6231040bc6f5
Syntaxpublic void Perspective(
float fovy,
float aspect,
float nearPlane,
float farPlane
)
Public Sub Perspective (
fovy As Single,
aspect As Single,
nearPlane As Single,
farPlane As Single
)
public:
void Perspective(
float fovy,
float aspect,
float nearPlane,
float farPlane
)
member Perspective :
fovy : float32 *
aspect : float32 *
nearPlane : float32 *
farPlane : float32 -> unit
Parameters
- fovy
- Type: System.Single
The field of view angle, in radians, in the y-direction. - aspect
- Type: System.Single
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: System.Single
The distance from the viewer to the near clipping plane (always positive). - farPlane
- Type: System.Single
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