public PointF Warp(float srcX, float srcY) { if (Isdirty) { computeWarp(); } return(Warper.Warp(m_WarpMatrix, srcX, srcY)); }
public WiiMoteToMouseCoverter(Warper i_Warper, WiiMoteWrapper i_WiiMoteWrapper) { m_Warper = i_Warper; m_Smoother = new Smoother(); registerEventsListeners(i_WiiMoteWrapper); m_WiiMoteWrapper = i_WiiMoteWrapper; ScreenWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; ScreenHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; ControlledAreaTopOffset = 0; ControlledAreaBottomOffset = 0; }
public Calibrator(WiiMoteWrapper i_WiiMoteWraper) { m_IsCalibrated = false; m_CurrentCalibrationCounter = 0; m_TopCalibrationMargin = 0; m_ScreenWidth = Screen.PrimaryScreen.Bounds.Width; m_ScreenHeight = Screen.PrimaryScreen.Bounds.Height; m_StaticCalibrationArrayX = new float[4]; m_StaticCalibrationArrayY = new float[4]; m_InfraRedCalibrationArrayX = new float[4]; m_InfraRedCalibrationArrayY = new float[4]; m_Warper = new Warper(); m_WiiMoteWrapper = i_WiiMoteWraper; m_CalibratorForm = null; }