Create HouseTextureMapping
This commit is contained in:
1 parent
9f322bccba
commit
de8a8e8d2b
80 files changed
+4942
No files matched your search
@@ -0,0 +1,41 @@
|
||||
// Vector.h: interface for the CVector class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_VECTOR_H__8C972371_1C22_4E15_A2A8_3CE42319C9CB__INCLUDED_)
|
||||
#define AFX_VECTOR_H__8C972371_1C22_4E15_A2A8_3CE42319C9CB__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#include "P3.h"
|
||||
#include "Pi3.h"
|
||||
|
||||
class CVector
|
||||
{
|
||||
public:
|
||||
CVector();
|
||||
virtual ~CVector();
|
||||
CVector(double x,double y,double z);
|
||||
CVector(const CP3 &);
|
||||
CVector(const CPi3 &);
|
||||
CVector(const CP3 &,const CP3 &);
|
||||
CVector(const CPi3 &,const CPi3 &);
|
||||
double Mag();//矢量的模
|
||||
CVector Normalize();//单位矢量
|
||||
friend CVector operator +(const CVector &,const CVector &);//运算符重载
|
||||
friend CVector operator -(const CVector &,const CVector &);
|
||||
friend CVector operator *(const CVector &,double);
|
||||
friend CVector operator *(double,const CVector &);
|
||||
friend CVector operator /(const CVector &,double);
|
||||
friend CVector operator+=(CVector &,CVector &);
|
||||
friend CVector operator-=(CVector &,CVector &);
|
||||
friend CVector operator*=(CVector &,CVector &);
|
||||
friend CVector operator/=(CVector &,double);
|
||||
friend double Dot(const CVector &,const CVector &); //矢量点积
|
||||
friend CVector Cross(const CVector &,const CVector &);//矢量叉积
|
||||
public:
|
||||
double x,y,z;//公有数据成员,方便外部访问
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_VECTOR_H__8C972371_1C22_4E15_A2A8_3CE42319C9CB__INCLUDED_)
|
||||
Reference in new issue
Block a user