File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 29
29
30
30
// document.head polyfill for the benefit of Firefox 3.6
31
31
if (!document.head) {
32
- document.getElementsByTagName('head')[0];
32
+ document.head = document. getElementsByTagName('head')[0];
33
33
}
34
34
35
35
// Typed Arrays: fallback to WebGL arrays or Native JS arrays if unavailable
1143
1143
v.x = Math.cos(angle);
1144
1144
v.y = Math.sin(angle);
1145
1145
return v;
1146
- }
1146
+ };
1147
1147
1148
1148
PVector.random2D = function(v) {
1149
1149
return PVector.fromAngle(Math.random() * PConstants.TWO_PI, v);
1150
- }
1150
+ };
1151
1151
1152
1152
PVector.random3D = function(v) {
1153
1153
var angle = Math.random() * PConstants.TWO_PI;
1161
1161
v.set(vx, vy, vz);
1162
1162
}
1163
1163
return v;
1164
- }
1164
+ };
1165
1165
1166
1166
PVector.dist = function(v1, v2) {
1167
1167
return v1.dist(v2);
1188
1188
var retval = new PVector(v1.x, v1.y, v1.z);
1189
1189
retval.lerp(v2, amt);
1190
1190
return retval;
1191
- }
1191
+ };
1192
1192
1193
1193
// Common vector operations for PVector
1194
1194
PVector.prototype = {
1302
1302
x * v.y - v.x * y);
1303
1303
},
1304
1304
lerp: function(v_or_x, amt_or_y, z, amt) {
1305
- function lerp_val(start, stop, amt) {
1305
+ var lerp_val = function (start, stop, amt) {
1306
1306
return start + (stop - start) * amt;
1307
1307
};
1308
1308
var x, y;
You can’t perform that action at this time.
0 commit comments