📄 cpoint3d.h
字号:
//////////////////////////////////////////////////////////////////////////
/************************************************************************/
/* CPoint3D.h */
/************************************************************************/
#ifndef __CPOINT3D_H__
#define __CPOINT3D_H__
typedef class POINT3D
{
public:
POINT3D();
~POINT3D();
POINT3D operator + (const POINT3D &point3d);
POINT3D operator - (const POINT3D &point3d);
POINT3D operator / (const int &sum);
POINT3D operator * (const int &sum);
POINT3D operator += (const POINT3D &point3d);
POINT3D operator -= (const POINT3D &point3d);
POINT3D operator /= (const int &sum);
POINT3D operator *= (const int &sum);
public:
float x;
float y;
float z;
BYTE w;// w = 0 无用
// = 1 有用
}Point3D;
typedef class POINT7D : public POINT3D
{
public :
POINT7D();
~POINT7D();
POINT7D operator =(const POINT3D &point3d);
public:
float nx;
float ny;
float nz;
} Point7D;
double Distance(const POINT3D &p1 , const POINT3D &p2);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -