lib/toxi/geom/vectors.js
function(box_or_min, max){
			var min;
			if( is.AABB( box_or_min ) ){
				max = box_or_min.getMax();
				min = box_or_min.getMin();
			} else {
				min = box_or_min;
			}
			this.x = mathUtils.clip(this.x, min.x, max.x);
			this.y = mathUtils.clip(this.y, min.y, max.y);
			this.z = mathUtils.clip(this.z, min.z, max.z);
			return this;
		}
function(box_or_min, max){
			var min;
			if( is.AABB( box_or_min ) ){
				max = box_or_min.getMax();
				min = box_or_min.getMin();
			} else {
				min = box_or_min;
			}
			this.x = mathUtils.clip(this.x, min.x, max.x);
			this.y = mathUtils.clip(this.y, min.y, max.y);
			this.z = mathUtils.clip(this.z, min.z, max.z);
			return this;
		}
function ( box_or_min , max ) { var min ; if ( is . AABB ( box_or_min ) ) { max = box_or_min . getMax ( ) ; min = box_or_min . getMin ( ) ; } else { min = box_or_min ; } this . x = mathUtils . clip ( this . x , min . x , max . x ) ; this . y = mathUtils . clip ( this . y , min . y , max . y ) ; this . z = mathUtils . clip ( this . z , min . z , max . z ) ; return this ; }
Forcefully fits the vector in the given AABB specified by the 2 given
points.

@param box_or_min
either the AABB box by itself, or your min Vec3D with accompanying max
@param max
@return itself
Forcefully fits the vector in the given AABB specified by the 2 given points .