Z軸を中心とした回転行列を作成する
val = CreateRotationZMatrix(Out, Angle)
MATRIX *Out float Angle
(プラグイン / モジュール : DxLibW)
Z軸を中心とした回転行列を作成して返します。 引数 Angle はラジアン単位で、Z軸周りの回転角度を指定します。 度数法からの変換: ラジアン = 度 * DX_PI_F / 180.0f 例: MATRIX mat = CreateRotationZMatrix(DX_PI_F / 2.0f); // Z軸周りに90度回転 戻り値: MATRIX 構造体(Z軸回転行列) 関連関数: CreateRotationXMatrix, CreateRotationYMatrix, MV1SetRotationXYZ 戻り値: int
| CreateRotationZMatrixD | Z軸を中心とした回転行列を作成する | (DxLibW) |
| プラグイン / モジュール | DxLibW |
| バージョン | 3.24f |
| 作成日 | 2026/04/12 |
| 著作者 | DxLib: Takumi Yamada / HSP binding: IronHSP Project |
| URL | https://dxlib.xsrv.jp/ |
| 備考 | hspdxlib.as をインクルードして使用 |
| タイプ | DxLib ゲームライブラリ |
| グループ | DxLib その他 |
| 対応環境 |
|
| hs ファイル | hsphelp\hspdxlib.hs |