src/Vec2.js
function(p){
        this.x = Math.pow(this.x, p);
        this.y = Math.pow(this.y, p);
        return this;
    }
function(p){
        this.x = Math.pow(this.x, p);
        this.y = Math.pow(this.y, p);
        return this;
    }
function ( p ) { this . x = Math . pow ( this . x , p ) ; this . y = Math . pow ( this . y , p ) ; return this ; }
Raises each component of the vector to the power p.
@memberof Vec2#
@returns {Vec2}
Raises each component of the vector to the power p .