Скачиваний:
26
Добавлен:
01.05.2014
Размер:
773 б
Скачать
// Rotate.cpp : implementation file
//

#include "stdafx.h"
#include "Laba1.h"
#include "Rotate.h"
#include ".\resource.h"
#include <math.h>


// cRotate dialog

IMPLEMENT_DYNAMIC(cRotate, CDialog)
cRotate::cRotate(CWnd* pParent /*=NULL*/)
	: CDialog(cRotate::IDD, pParent)
	, RValue(0)
{
}

cRotate::~cRotate()
{
}

void cRotate::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, RValue);
	RValue = ((RValue*(float)(3.14159265358979323846))/180);
	theApp.Operator[0][0] = cos(RValue);
	theApp.Operator[0][1] = sin(RValue);
	theApp.Operator[1][0] = -sin(RValue);
	theApp.Operator[1][1] = cos(RValue);
}


BEGIN_MESSAGE_MAP(cRotate, CDialog)
END_MESSAGE_MAP()


// cRotate message handlers
Соседние файлы в папке Laba1