setWindow method

void setWindow(
  1. double offsetX,
  2. double offsetY,
  3. double ratioX,
  4. double ratioY,
)

Implementation

void setWindow( double offsetX, double offsetY, double ratioX, double ratioY ){
	_offsetX = offsetX;
	_offsetY = offsetY;
	_ratioX  = ratioX;
	_ratioY  = ratioY;
	_ratioX2 = (_ratioX >= 0.0) ? _ratioX : -_ratioX;
	_ratioY2 = (_ratioY >= 0.0) ? _ratioY : -_ratioY;

	// 現在点を更新する
	_wndMoveX = wndPosX( _imgMoveX );
	_wndMoveY = wndPosY( _imgMoveY );
}