This repository has been archived by the owner on Nov 23, 2019. It is now read-only.
forked from yayahjb/ncdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlitchElement.h
executable file
·61 lines (51 loc) · 1.72 KB
/
GlitchElement.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
#if _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef GLITCHELEMENT_H
#define GLITCHELEMENT_H
#include <vector>
template<typename TVEC>
class GlitchElement
{
public:
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
GlitchElement( void )
: m_glitchDistance( -1.0 )
, m_glitchPosition( )
, m_glichVector( )
/*-------------------------------------------------------------------------------------*/
{
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
GlitchElement(
const double glitchDistance1,
const size_t glitchPosition1,
const TVEC& glichVector1
)
: m_glitchDistance( glitchDistance1 )
, m_glitchPosition( glitchPosition1 )
, m_glichVector( glichVector1 )
/*-------------------------------------------------------------------------------------*/
{
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
~GlitchElement( void ) {
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const double GetDistance( void ) const {
return(m_glitchDistance);
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const size_t GetPosition( void ) const {
return(m_glitchPosition);
}
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
const TVEC GetVector( void ) const {
return(m_glichVector);
}
private:
double m_glitchDistance;
size_t m_glitchPosition;
TVEC m_glichVector;
};
#endif