File: Point.h

package info (click to toggle)
node-opencv 6.0.0+git20180416.cfc96ba0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 24,632 kB
  • sloc: xml: 476,707; cpp: 5,950; makefile: 114; sh: 59; ansic: 20
file content (19 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Template class for 2D points

#include "OpenCV.h"

class Point: public Nan::ObjectWrap {
public:
  CvPoint2D32f point;
  static Nan::Persistent<FunctionTemplate> constructor;
  static void Init(Local<Object> target);
  static NAN_METHOD(New);
  Point(double x, double y);

  static NAN_GETTER(GetX);
  static NAN_GETTER(GetY);
  static NAN_SETTER(RaiseImmutable);

  static NAN_METHOD(Dot);
};