📄 wind.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 + -