趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
PointF.h
Go to the documentation of this file.
1 #ifndef HRK_POINT_F_H
2 #define HRK_POINT_F_H
3 
9 namespace hrk
10 {
12  class PointF
13  {
14  public:
15  PointF(void);
16 
18  PointF(double x, double y);
19 
21  double x(void) const;
22 
24  double y(void) const;
25 
27  void set_x(double x);
28 
30  void set_y(double y);
31 
33  bool operator != (const PointF& rhs) const;
34  bool operator == (const PointF& rhs) const;
35 
37  bool operator < (const PointF& rhs) const;
38 
40  PointF& operator += (const PointF& rhs);
41 
43  const PointF operator + (const PointF& rhs) const;
44 
46  PointF& operator -= (const PointF& rhs);
47 
49  const PointF operator - (const PointF& rhs) const;
50 
52  PointF& operator *= (const double rhs);
53 
55  const PointF operator * (const double rhs);
56 
57  private:
58  double x_;
59  double y_;
60  };
61 }
62 
63 #endif
const PointF operator-(const PointF &rhs) const
operator
Definition: PointF.cpp:95
void set_x(double x)
x の値を登録する
Definition: PointF.cpp:33
const PointF operator*(const double rhs)
operator
Definition: PointF.cpp:110
位置
Definition: PointF.h:12
bool operator!=(const PointF &rhs) const
operator
Definition: PointF.cpp:45
PointF & operator-=(const PointF &rhs)
operator
Definition: PointF.cpp:86
bool operator<(const PointF &rhs) const
operator
Definition: PointF.cpp:57
PointF & operator+=(const PointF &rhs)
operator
Definition: PointF.cpp:71
void set_y(double y)
y の値を登録する
Definition: PointF.cpp:39
PointF & operator*=(const double rhs)
operator
Definition: PointF.cpp:101
double x(void) const
x の値を返す
Definition: PointF.cpp:21
const PointF operator+(const PointF &rhs) const
operator
Definition: PointF.cpp:80
double y(void) const
y の値を返す
Definition: PointF.cpp:27