2
0
Эх сурвалжийг харах

Filled-in docs for Matrix3.

alteredq 13 жил өмнө
parent
commit
c45f99c07d

+ 16 - 8
docs/api/core/Matrix3.rst

@@ -1,30 +1,38 @@
 Matrix3 - A 3x3 matrix
 ----------------------
 
+.. ...............................................................................
 .. rubric:: Constructor
+.. ...............................................................................
 
 .. class:: Matrix3()
 
     A 3x3 matrix
-    
+
+.. ...............................................................................
 .. rubric:: Attributes
+.. ...............................................................................
 
 .. attribute:: Matrix3.m
 
-    //todo:description
+    Array with matrix values
 
+.. ...............................................................................
 .. rubric:: Methods
+.. ...............................................................................
 
 .. function:: Matrix3.transpose()
 
-    //todo::description
+    Transposes this matrix in place
 
-.. function:: Matrix3.transposeIntoArray(r)
+    :returns: This matrix
+    :rtype: :class:`Matrix3`
 
-    //todo::description
+.. function:: Matrix3.transposeIntoArray( r )
 
-.. rubric:: Example(s)
+    Transposes this matrix into supplied array ``r``
 
-::
+    This matrix is unmodified
 
-//todo:example
+    :returns: This matrix
+    :rtype: :class:`Matrix3`

+ 4 - 0
src/core/Matrix3.js

@@ -1,3 +1,7 @@
+/**
+ * @author alteredq / http://alteredqualia.com/
+ */
+
 THREE.Matrix3 = function () {
 
 	this.m = [];