2
0

Matrix3.html 3.6 KB

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