src/Vec3.js
function(dec) {
        if(!dec){
            dec = 2;
        }
        return '{x: ' + this.x.toFixed(dec) + ', y: ' + this.y.toFixed(dec)  + ', z: ' + this.z.toFixed(dec)  + '}';
    }
function(dec) {
        if(!dec){
            dec = 2;
        }
        return '{x: ' + this.x.toFixed(dec) + ', y: ' + this.y.toFixed(dec)  + ', z: ' + this.z.toFixed(dec)  + '}';
    }
function ( dec ) { if ( ! dec ) { dec = 2 ; } return '{x: ' + this . x . toFixed ( dec ) + ', y: ' + this . y . toFixed ( dec ) + ', z: ' + this . z . toFixed ( dec ) + '}' ; }
Converts the vector to a string representation.
@memberof Vec3#
@param   {Number}  [dec=2] - number of decimal places to round to (default is 2)
@returns {string} string of the form {x: <x value>, y: <y value>, z: <z value>}
Converts the vector to a string representation .