point

yzheka-m/nokia-5510-display/point

No description
point
@/point
Xnumber
X coordinate
Ynumber
Y coordinate
point
X
Y
POINT
POINT@/point
Point object
To use the node in your project you should have the yzheka-m/nokia-5510-display library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

{{#global}}
class Point {
    public:
    int x, y;
    Point ();
    Point (int,int);
};

Point::Point () {
  x = 0;
  x = 0;
}

Point::Point (int a, int b) {
  x = a;
  y = b;
}
{{/global}}

using Type = Point*;

struct State {
    Type point;
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    auto x = getValue<input_X>(ctx);
    auto y = getValue<input_Y>(ctx);
    auto state=getState(ctx);
    state->point = new Point(x,y);
    emitValue<output_POINT>(ctx, state->point);
}