Trajectory Outlier Detection Library
 All Classes Functions Variables Pages
MDPoint.h
1 #pragma once
2 
3 // CMDPoint command target
4 
10 class CMDPoint
11 {
12 public:
13  CMDPoint();
14  CMDPoint(int nDimensions);
15  virtual ~CMDPoint();
16 private:
17  int m_nDimensions; // the number of dimensions of a point
18  float* m_coordinate; // the coordinate of a point
19 public:
20  const int GetNDimensions() const { return m_nDimensions; }
22  const float GetCoordinate(int nth) const { return m_coordinate[nth]; }
24  void SetCoordinate(int nth, float value) { m_coordinate[nth] = value; }
26 };
const float GetCoordinate(int nth) const
Getter for the value of the nth dimension of the point.
Definition: MDPoint.h:22
A simple point class.
Definition: MDPoint.h:10
CMDPoint()
Default constructor.
Definition: MDPoint.cpp:15
void SetCoordinate(int nth, float value)
Setter for the value of the nth dimension of the point.
Definition: MDPoint.h:24
const int GetNDimensions() const
Getter for the number of dimensions.
Definition: MDPoint.h:20