Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
メモ: この機能はウェブワーカー内で利用可能です。
rotateFromVector() は DOMMatrixReadOnly インターフェイスの読み取り専用プロパティで、指定されたベクトルと (1, 0) の間の角度でソース行列を回転させて作成された新しい DOMMatrix を返します。回転角度は、ベクトル (1,0)T と (x,y)T の間の時計回り方向の角度、すなわち (+/-)arctan(y/x) で決定されます。x と y が両方とも 0 の場合、角度は 0 と指定します。元の行列は変更されません。
指定されたベクトルと (1, 0) の間の角度で回転させながら行列を変化させるには、DOMMatrix.rotateFromVectorSelf() を参照してください。
数値です。回転角を決定する x,y ベクトルの X 座標です。未定義の場合、0 が使用されます。
rotY 省略可数値です。回転角を決定する x,y ベクトルの Y 座標です。未定義の場合、0 が使用されます。
DOMMatrix です。
| Geometry Interfaces Module Level 1 # dom-dommatrixreadonly-rotatefromvector |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年2月17日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.