Issue 508
[zxing.git] / cpp / core / src / zxing / common / Point.h
1 #ifndef __POINT_H__
2 #define __POINT_H__
3
4 /*
5  *  Point.h
6  *  zxing
7  *
8  *  Copyright 2010 ZXing authors All rights reserved.
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *      http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22
23 namespace zxing {
24 class PointI {
25 public:
26   int x;
27   int y;
28 };
29
30 class Point {
31 public:
32   Point() : x(0.0f), y(0.0f) {};
33   Point(float x_, float y_) : x(x_), y(y_) {};
34
35   float x;
36   float y;
37 };
38
39 class Line {
40 public:
41   Line(Point start_, Point end_) : start(start_), end(end_) {};
42
43   Point start;
44   Point end;
45 };
46 }
47 #endif // POINT_H_