lib/toxi/geom/vectors.js
function() {
			if (Math.abs(this.x) < 0.5) {
				this.x = 0;
			} else {
				this.x = this.x < 0 ? -1 : 1;
				this.y = this.z = 0;
			}
			if (Math.abs(this.y) < 0.5) {
				this.y = 0;
			} else {
				this.y = this.y < 0 ? -1 : 1;
				this.x = this.z = 0;
			}
			if (Math.abs(this.z) < 0.5) {
				this.z = 0;
			} else {
				this.z = this.z < 0 ? -1 : 1;
				this.x = this.y = 0;
			}
			return this;
		}
function() {
			if (Math.abs(this.x) < 0.5) {
				this.x = 0;
			} else {
				this.x = this.x < 0 ? -1 : 1;
				this.y = this.z = 0;
			}
			if (Math.abs(this.y) < 0.5) {
				this.y = 0;
			} else {
				this.y = this.y < 0 ? -1 : 1;
				this.x = this.z = 0;
			}
			if (Math.abs(this.z) < 0.5) {
				this.z = 0;
			} else {
				this.z = this.z < 0 ? -1 : 1;
				this.x = this.y = 0;
			}
			return this;
		}
function ( ) { if ( Math . abs ( this . x ) < 0.5 ) { this . x = 0 ; } else { this . x = this . x < 0 ? - 1 : 1 ; this . y = this . z = 0 ; } if ( Math . abs ( this . y ) < 0.5 ) { this . y = 0 ; } else { this . y = this . y < 0 ? - 1 : 1 ; this . x = this . z = 0 ; } if ( Math . abs ( this . z ) < 0.5 ) { this . z = 0 ; } else { this . z = this . z < 0 ? - 1 : 1 ; this . x = this . y = 0 ; } return this ; }
Rounds the vector to the closest major axis. Assumes the vector is
normalized.

@return itself
Rounds the vector to the closest major axis . Assumes the vector is normalized .