aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/math/vec3.js
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:53:10 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit04343eda8c2f870b0da55cfdc8003c99fe1cc4de (patch)
tree0a6048889b65bb16ff58822e55bc1346e9eb07bd /js/helper-classes/RDGE/src/core/script/math/vec3.js
parent648ee61ae84216d0236e0dbc211addc13b2cfa3a (diff)
downloadninja-04343eda8c2f870b0da55cfdc8003c99fe1cc4de.tar.gz
Remove trailing spaces
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/math/vec3.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/math/vec3.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/math/vec3.js b/js/helper-classes/RDGE/src/core/script/math/vec3.js
index 72662513..86d17e04 100755
--- a/js/helper-classes/RDGE/src/core/script/math/vec3.js
+++ b/js/helper-classes/RDGE/src/core/script/math/vec3.js
@@ -31,8 +31,8 @@ POSSIBILITY OF SUCH DAMAGE.
31 31
32/** 32/**
33 * RDGE.vec3 = {} 33 * RDGE.vec3 = {}
34 * This library contains functions for operating on 3D vectors. Any JS array 34 * This library contains functions for operating on 3D vectors. Any JS array
35 * containing at least 3 numeric components can represent a 3D vector. 35 * containing at least 3 numeric components can represent a 3D vector.
36 * 36 *
37 * For example, all of these are valid RDGE.vec3 declarations: 37 * For example, all of these are valid RDGE.vec3 declarations:
38 * var a = [0, 0, 1]; 38 * var a = [0, 0, 1];
@@ -52,7 +52,7 @@ RDGE.vec3.string = function (v) {
52 52
53/** 53/**
54 * RDGE.vec3.verify 54 * RDGE.vec3.verify
55 * This function is provided for debugging purposes only. It is not recommended 55 * This function is provided for debugging purposes only. It is not recommended
56 * to be used in performance critical areas of the code. 56 * to be used in performance critical areas of the code.
57 */ 57 */
58RDGE.vec3.verify = function (v) { 58RDGE.vec3.verify = function (v) {
@@ -94,7 +94,7 @@ RDGE.vec3.translation = function (m) {
94}; 94};
95 95
96/** 96/**
97* RDGE.vec3.basisX = function( m ) 97* RDGE.vec3.basisX = function( m )
98* description : returns a vector containing the translation vector of m. 98* description : returns a vector containing the translation vector of m.
99*/ 99*/
100RDGE.vec3.basisX = function (m) { 100RDGE.vec3.basisX = function (m) {
@@ -102,7 +102,7 @@ RDGE.vec3.basisX = function (m) {
102}; 102};
103 103
104/** 104/**
105* RDGE.vec3.basisY = function( m ) 105* RDGE.vec3.basisY = function( m )
106* description : returns a vector containing the translation vector of m. 106* description : returns a vector containing the translation vector of m.
107*/ 107*/
108RDGE.vec3.basisY = function (m) { 108RDGE.vec3.basisY = function (m) {
@@ -110,7 +110,7 @@ RDGE.vec3.basisY = function (m) {
110}; 110};
111 111
112/** 112/**
113* RDGE.vec3.basisZ = function( m ) 113* RDGE.vec3.basisZ = function( m )
114* description : returns a vector containing the translation vector of m. 114* description : returns a vector containing the translation vector of m.
115*/ 115*/
116RDGE.vec3.basisZ = function (m) { 116RDGE.vec3.basisZ = function (m) {
@@ -155,14 +155,14 @@ RDGE.vec3.random = function (min, max) {
155}; 155};
156 156
157/** 157/**
158* RDGE.vec3.xy 158* RDGE.vec3.xy
159*/ 159*/
160RDGE.vec3.xy = function (v) { 160RDGE.vec3.xy = function (v) {
161 return [v[0], v[1]]; 161 return [v[0], v[1]];
162}; 162};
163 163
164/** 164/**
165* RDGE.vec3.xz 165* RDGE.vec3.xz
166*/ 166*/
167RDGE.vec3.xz = function (v) { 167RDGE.vec3.xz = function (v) {
168 return [v[0], v[2]]; 168 return [v[0], v[2]];
@@ -222,7 +222,7 @@ RDGE.vec3.plusEqualMul = function (a, b, s) {
222}; 222};
223 223
224/** 224/**
225* RDGE.vec3.scale 225* RDGE.vec3.scale
226*/ 226*/
227RDGE.vec3.scale = function (v, s) { 227RDGE.vec3.scale = function (v, s) {
228 if (s.length !== undefined && s.length >= 3) { 228 if (s.length !== undefined && s.length >= 3) {
@@ -264,7 +264,7 @@ RDGE.vec3.normalize = function (v) {
264}; 264};
265 265
266/** 266/**
267* RDGE.vec3.cross 267* RDGE.vec3.cross
268*/ 268*/
269RDGE.vec3.cross = function (a, b) { 269RDGE.vec3.cross = function (a, b) {
270 return [a[1] * b[2] - b[1] * a[2], 270 return [a[1] * b[2] - b[1] * a[2],
@@ -273,7 +273,7 @@ RDGE.vec3.cross = function (a, b) {
273}; 273};
274 274
275/** 275/**
276* RDGE.vec3.dot 276* RDGE.vec3.dot
277*/ 277*/
278RDGE.vec3.dot = function (a, b) { 278RDGE.vec3.dot = function (a, b) {
279 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; 279 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];