|
@@ -42,9 +42,7 @@ THREE.Path.prototype.fromPoints = function ( vectors ) {
|
|
|
|
|
|
this.moveTo( vectors[ 0 ].x, vectors[ 0 ].y );
|
|
|
|
|
|
- var v, vlen = vectors.length;
|
|
|
-
|
|
|
- for ( v = 1; v < vlen; v++ ) {
|
|
|
+ for ( var v = 1, vlen = vectors.length; v < vlen; v ++ ) {
|
|
|
|
|
|
this.lineTo( vectors[ v ].x, vectors[ v ].y );
|
|
|
|
|
@@ -155,7 +153,7 @@ THREE.Path.prototype.arc = function ( aX, aY, aRadius,
|
|
|
|
|
|
THREE.Path.prototype.getSpacedPoints = function ( divisions, closedPath ) {
|
|
|
|
|
|
- if ( !divisions ) divisions = 40;
|
|
|
+ if ( ! divisions ) divisions = 40;
|
|
|
|
|
|
var points = [];
|
|
|
|
|
@@ -338,7 +336,7 @@ THREE.Path.prototype.getPoints = function( divisions, closedPath ) {
|
|
|
|
|
|
t = j / tdivisions;
|
|
|
|
|
|
- if ( !aClockwise ) {
|
|
|
+ if ( ! aClockwise ) {
|
|
|
|
|
|
t = 1 - t;
|
|
|
|