Matrix3.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">A 3x3 matrix.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]()</h3>
  15. <div>
  16. Creates and initializes the 3x3 matrix to the identity matrix.
  17. </div>
  18. <h2>Properties</h2>
  19. <h3>[property:Float32Array elements]</h3>
  20. <div>
  21. A column-major list of matrix values.
  22. </div>
  23. <h2>Methods</h2>
  24. <h3>[method:Matrix3 transpose]()</h3>
  25. <div>
  26. Transposes this matrix in place.
  27. </div>
  28. <h3>[method:Matrix3 transposeIntoArray]( [page:Array array] )</h3>
  29. <div>
  30. array -- [page:Array] <br />
  31. </div>
  32. <div>
  33. Transposes this matrix into the supplied array, and returns itself unchanged.
  34. </div>
  35. <h3>[method:Float determinant]()</h3>
  36. <div>
  37. Computes and returns the determinant of this matrix.
  38. </div>
  39. <h3>[method:Matrix3 set]([page:Float n11], [page:Float n12], [page:Float n13], [page:Float n21], [page:Float n22], [page:Float n23], [page:Float n31], [page:Float n32], [page:Float n33]) [page:Matrix3 this]</h3>
  40. <div>
  41. n11 -- [page:Float] <br />
  42. n12 -- [page:Float] <br />
  43. n13 -- [page:Float] <br />
  44. n21 -- [page:Float] <br />
  45. n22 -- [page:Float] <br />
  46. n23 -- [page:Float] <br />
  47. n31 -- [page:Float] <br />
  48. n32 -- [page:Float] <br />
  49. n33 -- [page:Float]
  50. </div>
  51. <div>
  52. Sets the 3x3 matrix values to the given row-major sequence of values.
  53. </div>
  54. <h3>[method:Matrix3 multiplyScalar]([page:Float s]) [page:Matrix3 this]</h3>
  55. <div>
  56. scalar -- [page:Float]
  57. </div>
  58. <div>
  59. Multiplies every component of the matrix by the scalar value *s*.
  60. </div>
  61. <h3>[method:Array applyToVector3Array]([page:Array array])</h3>
  62. <div>
  63. array -- An array in the form [vector1x, vector1y, vector1z, vector2x, vector2y, vector2z, ...]
  64. </div>
  65. <div>
  66. Multiplies (applies) this matrix to every vector3 in the array.
  67. </div>
  68. <h3>[method:Matrix3 getNormalMatrix]([page:Matrix4 m]) [page:Matrix3 this]</h3>
  69. <div>
  70. m -- [page:Matrix4]
  71. </div>
  72. <div>
  73. Sets this matrix as the normal matrix (upper left 3x3)of the passed [page:Matrix4 matrix4]. The normal matrix is the inverse transpose of the matrix *m*.
  74. </div>
  75. <h3>[method:Matrix3 getInverse]([page:Matrix4 m], [page:Boolean throwOnInvertible]) [page:Matrix3 this]</h3>
  76. <div>
  77. m -- [page:Matrix4]<br />
  78. throwOnInvertible -- [Page:Boolean] If true, throw an error if the matrix is invertible.
  79. </div>
  80. <div>
  81. Set this matrix to the inverse of the passed matrix.
  82. </div>
  83. <h3>[method:Matrix3 copy]([page:Matrix3 m]) [page:Matrix3 this]</h3>
  84. <div>
  85. m -- [page:Matrix4]
  86. </div>
  87. <div>
  88. Copies the values of matrix *m* into this matrix.
  89. </div>
  90. <h3>[method:Matrix3 clone]()</h3>
  91. <div>
  92. Creates a copy of this matrix.
  93. </div>
  94. <h3>[method:Matrix3 identity]() [page:Matrix3 this]</h3>
  95. <div>
  96. Resets this matrix to identity.<br/><br/>
  97. 1, 0, 0<br/>
  98. 0, 1, 0<br/>
  99. 0, 0, 1<br/>
  100. </div>
  101. <h2>Source</h2>
  102. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  103. </body>
  104. </html>