⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wind.cpp

📁 此程序是用vc做的喷泉模拟实验 产生数据在砸爱matlab中画图就可以得到了
💻 CPP
字号:
// Wind.cpp: implementation of the CWind class.
//
//////////////////////////////////////////////////////////////////////

#include "Wind.h"


//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CWind::CWind()
{

}

CWind::~CWind()
{

}

CWind::CWind(float speed,float a,float b)
{
m_speed=speed;
m_speedx=speed*sin(a)*cos(b);
m_speedy=speed*sin(a)*sin(b);
m_speedz=speed*cos(a);	
}
void CWind::set_x(float x)
{
m_speedx=x;

}
void CWind::set_y(float y)
{
m_speedy=y;
}
void CWind::set_z(float z)
{
m_speedz=z;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -