|
@@ -71,6 +71,24 @@ m.elements = [ 11, 21, 31, 41,
|
|
|
请记住,如果您正在阅读源代码,您必须对这里列出的任何矩阵进行转置[link:https://en.wikipedia.org/wiki/Transpose transpose],以理解计算。
|
|
|
</p>
|
|
|
|
|
|
+ <h2>Extracting position, rotation and scale</h2>
|
|
|
+ <p>
|
|
|
+ There are several options available for extracting position, rotation and scale from a Matrix4.
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ [page:Vector3.setFromMatrixPosition]: can be used to extract the translation component.
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ [page:Vector3.setFromMatrixScale]: can be used to extract the scale component.
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ [page:Quaternion.setFromRotationMatrix], [page:Euler.setFromRotationMatrix] or [page:.extractRotation extractRotation] can be used to extract the rotation component.
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ [page:.decompose decompose] can be used to extract position, rotation and scale all at once.
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </p>
|
|
|
|
|
|
<h2>构造器(Constructor)</h2>
|
|
|
|