@@ -34,7 +34,8 @@ var GLMath={
3434/**
3535 * Finds the cross product of two 3-element vectors.
3636 * The cross product is the vector that is perpendicular to
37- * each of two other vectors. If both vectors are unit length
37+ * each of two other vectors.<p>
38+ * If both vectors are unit length
3839 * (via {@link glmath.GLMath.vec3norm}), the sine of
3940 * the angle between them is equal to the length of their
4041 * cross product. <small>(More formally, the length of the cross
@@ -58,12 +59,14 @@ return [a[1]*b[2]-a[2]*b[1],
5859/**
5960 * Finds the dot product of two 3-element vectors. It's the
6061 * sum of the products of their components (for example, <b>a</b>'s X times <b>b</b>'s X).
61- * If both vectors are unit length
62+ * <p> If both vectors are unit length
6263 * (via {@link glmath.GLMath.vec3norm}), the cosine
6364 * of the angle between them is equal to their dot product.
6465 * <small>(More formally, the dot
6566 * product equals |<b>a</b>| * |<b>b</b>| * cos θ
6667 * where |<b>x</b>| is the length of vector <b>x</b>.)</small>
68+ * <p>A dot product of 0 indicates that the two vectors
69+ * are <i>orthogonal</i> (perpendicular) to each other.
6770 * @param {Array<number> } a The first vector.
6871 * @param {Array<number> } b The second vector.
6972 * @return {number } A number representing the dot product.
@@ -1074,7 +1077,7 @@ mat4translate:function(mat,v3,v3y,v3z){
10741077 * <li>For <code>mat4perspective</code> and <code>mat4frustum</code>,
10751078* the "near" parameter should not be 0 or less, and should be set to the highest distance
10761079* from the camera that the application can afford to clip out for being too
1077- * close, for example, 0.1 , 1, or higher. This doesn't apply to <code>mat4ortho</code>.</li>
1080+ * close, for example, 0.5 , 1, or higher. This doesn't apply to <code>mat4ortho</code>.</li>
10781081 * <li>The difference between "far" and "near" should not be greater than 65536
10791082 * (the number of possible values per pixel in a 16-bit depth buffer) and should be
10801083 * as small as the application can accept. In any case, "far" should be greater than
0 commit comments