SDC C-Project CF Review 프로그램
LYW
2021-08-10 8ac7359b04409c2a1426f9a179c00b1c966d0146
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
 
#include "akSTLLinker.h"
#include "akVectorT.h"
 
//#define CakPointToCPoint(akPoint) CPoint(akPoint.x, akPoint.y)
//#define CPointToCakPoint(point) CakPoint(point.x, point.y)
 
 
class AKSTL_DLLSPEC akVector3d : public CakVectorT<double>
{
public:
 
    akVector3d(){};
    virtual ~akVector3d(){};
 
    akVector3d(const double& X, const double& Y, const double& Z) 
    {
        x=X,y=Y,z=Z;
    };
 
    akVector3d operator*(double& a)
    {
        akVector3d returnval;
 
        returnval.x = x * a;
        returnval.y = y * a;
        returnval.z = z * a;
 
        return returnval;
    };
 
    akVector3d operator *(akVector3d &vec)
    {
        akVector3d vc;
        vc.x = y*vec.z - z*vec.y;
        vc.y = z*vec.x - x*vec.z;
        vc.z = x*vec.y - y*vec.x;
        return vc;
    }
 
    
    
 
};