Closed samreid closed 11 years ago
Current code is:
rotated: function( angle ) { var newAngle = this.angle() + angle; return new this.constructor( Math.cos( newAngle ), Math.sin( newAngle ) ).timesScalar( this.getMagnitude() ); }
Proposed fix:
rotated: function( angle ) { var newAngle = this.angle() + angle; return new this.constructor( Math.cos( newAngle ), Math.sin( newAngle ) ).timesScalar( this.magnitude() ); }
Current code is:
Proposed fix: