次の方法で共有


Matrix.Transformation2D メソッド

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

xy 平面に 2-D 変換行列を作成します。

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

構文

'宣言
Public Shared Function Transformation2D ( _
    scalingCenter As Vector2, _
    scalingRotation As Single, _
    scaling As Vector2, _
    rotationCenter As Vector2, _
    rotation As Single, _
    translation As Vector2 _
) As Matrix
'使用
Dim scalingCenter As Vector2
Dim scalingRotation As Single
Dim scaling As Vector2
Dim rotationCenter As Vector2
Dim rotation As Single
Dim translation As Vector2
Dim returnValue As Matrix

returnValue = Matrix.Transformation2D(scalingCenter, _
    scalingRotation, scaling, rotationCenter, _
    rotation, translation)
public static Matrix Transformation2D(
    Vector2 scalingCenter,
    float scalingRotation,
    Vector2 scaling,
    Vector2 rotationCenter,
    float rotation,
    Vector2 translation
)
public:
static Matrix Transformation2D(
    Vector2 scalingCenter, 
    float scalingRotation, 
    Vector2 scaling, 
    Vector2 rotationCenter, 
    float rotation, 
    Vector2 translation
)
static member Transformation2D : 
        scalingCenter:Vector2 * 
        scalingRotation:float32 * 
        scaling:Vector2 * 
        rotationCenter:Vector2 * 
        rotation:float32 * 
        translation:Vector2 -> Matrix 

パラメーター

  • scalingRotation
    型 : System.Single
    スケール回転ファクター。回転しないことを指定するには、0 を使用します。
  • rotation
    型 : System.Single
    回転角度 (ラジアン単位)。

戻り値

型 : Microsoft.WindowsMobile.DirectX.Matrix
変換行列を格納する Matrix 構造体。

解説

Transformation2D メソッドは、左から右に評価される行列連結を使った次の数式によって、アフィン変換行列を計算します。

M [out] = (M sc)-1 * (M sr)-1 * M s * M sr * M sc * (M rc)-1 * M r * M rc * M t

指定項目:

  • M out = 出力変換行列 (戻り値)

  • M sc = スケーリング中心行列 (scalingCenter)

  • M sr = スケーリング回転行列 (scalingRotation)

  • M s = スケーリング行列 (scaling)

  • M rc = 回転行列の中心 (rotationCenter)

  • M r = 回転行列 (rotation)

  • M t = 平行移動行列 (translation)

3-D 変換の場合は、Transformation を使用します。

.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 名前空間