ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX Namespace / Matrix4x4 Structure / PerspectiveFieldOfView Method
The field of view in the y direction, in radians.
The aspect ratio, defined as view space width divided by height.
The distance to the near view plane.
The distance to the far view plane.

In This Topic
    PerspectiveFieldOfView Method
    In This Topic
    Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
    Syntax
    'Declaration
     
    Public Shared Function PerspectiveFieldOfView( _
       ByVal fieldOfView As Single, _
       ByVal aspectRatio As Single, _
       ByVal nearPlaneDistance As Single, _
       ByVal farPlaneDistance As Single _
    ) As Matrix4x4
    public static Matrix4x4 PerspectiveFieldOfView( 
       float fieldOfView,
       float aspectRatio,
       float nearPlaneDistance,
       float farPlaneDistance
    )

    Parameters

    fieldOfView
    The field of view in the y direction, in radians.
    aspectRatio
    The aspect ratio, defined as view space width divided by height.
    nearPlaneDistance
    The distance to the near view plane.
    farPlaneDistance
    The distance to the far view plane.

    Return Value

    The perspective projection matrix.
    See Also