次の方法で共有


Matrix.PerspectiveFovLH メソッド

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

視野に基づいて、左手座標系パースペクティブ射影行列を作成します。

名前空間:  Microsoft.WindowsMobile.DirectX
アセンブリ:  Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)

構文

'宣言
Public Shared Function PerspectiveFovLH ( _
    fieldOfViewY As Single, _
    aspectRatio As Single, _
    znearPlane As Single, _
    zfarPlane As Single _
) As Matrix
'使用
Dim fieldOfViewY As Single
Dim aspectRatio As Single
Dim znearPlane As Single
Dim zfarPlane As Single
Dim returnValue As Matrix

returnValue = Matrix.PerspectiveFovLH(fieldOfViewY, _
    aspectRatio, znearPlane, zfarPlane)
public static Matrix PerspectiveFovLH(
    float fieldOfViewY,
    float aspectRatio,
    float znearPlane,
    float zfarPlane
)
public:
static Matrix PerspectiveFovLH(
    float fieldOfViewY, 
    float aspectRatio, 
    float znearPlane, 
    float zfarPlane
)
static member PerspectiveFovLH : 
        fieldOfViewY:float32 * 
        aspectRatio:float32 * 
        znearPlane:float32 * 
        zfarPlane:float32 -> Matrix 

パラメーター

  • fieldOfViewY
    型 : System.Single
    y 方向の視野 (ラジアン単位)。
  • aspectRatio
    型 : System.Single
    縦横比。ビュー空間の幅を高さで割った値として定義されます。
  • znearPlane
    型 : System.Single
    近いビュー平面の Z 値。
  • zfarPlane
    型 : System.Single
    遠いビュー平面の Z 値。

戻り値

型 : Microsoft.WindowsMobile.DirectX.Matrix
左手座標系パースペクティブ射影行列である Matrix 構造体。

PerspectiveFovLH メソッドを使用する方法の例を次に示します。この例は、Windows Software Development Kit (SDK) に含まれる Direct3D モバイルの行列のサンプルのものです。

' For the projection matrix, set up a perspective transform (which' transforms geometry from 3-D view space to 2-D viewport space, with' a perspective divide making objects smaller in the distance). To build' a perspective transform, you need the field of view (1/4 PI is common),' the aspect ratio, and the near and far clipping planes (which define' the distances at which geometry should no longer be rendered).
device.Transform.Projection = Matrix.PerspectiveFovLH(System.Convert.ToSingle(Math.PI) / 4, 1.0F, 1.0F, 100.0F)
// For the projection matrix, set up a perspective transform (which// transforms geometry from 3-D view space to 2-D viewport space, with// a perspective divide making objects smaller in the distance). To build// a perspective transform, you need the field of view (1/4 PI is common),// the aspect ratio, and the near and far clipping planes (which define// the distances at which geometry should no longer be rendered).
device.Transform.Projection = Matrix.PerspectiveFovLH((float)Math.PI / 4, 1.0f, 1.0f, 100.0f);

.NET Framework セキュリティ

プラットフォーム

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

Matrix 構造体

Matrix メンバー

Microsoft.WindowsMobile.DirectX 名前空間