public void truncate(double max){
    	double i;
    	double length = length();
    	if(length > .0001){
    		double test = 0;
    	}

    		i = max / length();
        	i = i < 1.0 ? i : 1.0;
        	scalarMultVoid(i);
    	
    }