wind.cpp
来自「此程序是用vc做的喷泉模拟实验 产生数据在砸爱matlab中画图就可以得到了」· C++ 代码 · 共 41 行
CPP
41 行
// 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 + =
减小字号Ctrl + -
显示快捷键?