this.percentageBetweenContainer=function( argContainer ) {
var pntContainer=argContainer;
var floatXScale=1.0;
var floatYScale= 1.0;
var floatRet=1.0;
if( pntContainer.w > posBounds.w && pntContainer.h > posBounds.h ){
return floatRet;
}
floatXScale=(pntContainer.w)/(posBounds.w);
floatYScale=(pntContainer.h)/(posBounds.h);
if(floatXScale<floatYScale){
floatRet=floatXScale;
}else{
floatRet=floatYScale;
}
return floatRet;
}
0 comments:
댓글 쓰기