-
Notifications
You must be signed in to change notification settings - Fork 0
/
myVec3d.h
28 lines (26 loc) · 900 Bytes
/
myVec3d.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef MYVEC3D_H
#define MYVEC3D_H
class myVec3d
{
public:
double x,y,z;
myVec3d();
myVec3d(double,double,double);
~myVec3d();
//myVec3d(myVec3d&);
friend myVec3d operator + ( const myVec3d& , const myVec3d& );
friend myVec3d operator - ( const myVec3d& , const myVec3d& );
friend myVec3d operator * ( const myVec3d& , const double& );
friend myVec3d operator / ( const myVec3d& , const double& );
friend myVec3d operator * ( const myVec3d& , const myVec3d& );
friend myVec3d& operator += ( myVec3d& , const myVec3d& );
friend myVec3d& operator -= ( myVec3d& , const myVec3d& );
friend myVec3d& operator *= ( myVec3d& , const double& );
friend myVec3d& operator /= ( myVec3d& , const double& );
friend myVec3d& operator *= ( myVec3d& , const myVec3d& );
friend myVec3d operator - ( const myVec3d& A );
double Module2();
double Module();
myVec3d Cross(const myVec3d& );
};
#endif