forked from yayahjb/ncdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Glitch.h
executable file
·74 lines (61 loc) · 2.37 KB
/
Glitch.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#if _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef GLITCH_H
#define GLITCH_H
#include "GlitchElement.h"
template<typename TVEC>
class Glitch
{
public:
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
Glitch( void )
: m_glitchData1( GlitchElement<TVEC>( ) )
, m_glitchData2( GlitchElement<TVEC>( ) )
/*-------------------------------------------------------------------------------------*/
{
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
Glitch(
const GlitchElement<TVEC>& glitchData1,
const GlitchElement<TVEC>& glitchData2
)
: m_glitchData1( glitchData1 )
, m_glitchData2( glitchData2 )
/*-------------------------------------------------------------------------------------*/
{
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
~Glitch( void )
/*-------------------------------------------------------------------------------------*/
{
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const GlitchElement<TVEC> GetGlitchElement1( void ) const
/*-------------------------------------------------------------------------------------*/
{
return(m_glitchData1);
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const GlitchElement<TVEC> GetGlitchElement2( void ) const
/*-------------------------------------------------------------------------------------*/
{
return(m_glitchData2);
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const double GetGlitchDistance1( void ) const
/*-------------------------------------------------------------------------------------*/
{
return(m_glitchData1.GetDistance( ));
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const double GetGlitchDistance2( void ) const
/*-------------------------------------------------------------------------------------*/
{
return(m_glitchData2.GetDistance( ));
}
private:
GlitchElement<TVEC> m_glitchData1;
GlitchElement<TVEC> m_glitchData2;
};
#endif // GLITCH_H