cpoint3d.h

来自「三维点云处理程序」· C头文件 代码 · 共 44 行

H
44
字号
//////////////////////////////////////////////////////////////////////////
/************************************************************************/
/*           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 + =
减小字号Ctrl + -
显示快捷键?