~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to NuxCore/Point.h

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 19:25:37 UTC
  • Revision ID: neil.patel@canonical.com-20100901192537-mfz7rm6q262pewg6
Import and build NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef POINT_H
 
2
#define POINT_H
 
3
 
 
4
NAMESPACE_BEGIN
 
5
 
 
6
class Point
 
7
{
 
8
public:
 
9
    Point();
 
10
    Point(t_int32 x, t_int32 y);
 
11
    ~Point();
 
12
    Point(const Point& p);
 
13
 
 
14
    Point& operator = (const Point& p);
 
15
    t_bool operator == (const Point& p) const;
 
16
    t_bool operator != (const Point& p) const;
 
17
        Point operator + (const Point& p) const;
 
18
        Point operator - (const Point& p) const;
 
19
    Point& operator += (const Point& p);
 
20
    Point& operator -= (const Point& p);
 
21
 
 
22
    void Set(t_int32 x_, t_int32 y_) {x = x_; y = y_;}
 
23
    void Get(t_int32& x_, t_int32& y_) {x_ = x; y_ = y;}
 
24
 
 
25
    t_int32 x;
 
26
    t_int32 y;
 
27
};
 
28
 
 
29
NAMESPACE_END
 
30
#endif // POINT_H
 
31
 
 
32