Need some help converting this C++ Struct to a Clarion structure.
It’s clearly going to be a Group of some kind but the C++ syntax has me guessing:
struct Point {
Point(double x0, double y0) : x(x0), y(y0) {}
double x;
double y;
};
Here’s an example of the Struct being populated:
const Point test_polygon2[39] = {
Point(0, 1), Point(1, 1), Point(1, 2), Point(2, 2), Point(2, 3),
Point(3, 3), Point(3, 2), Point(4, 0), Point(5, 9), Point(6, 0),
Point(7, 2), Point(8, 0), Point(8, -2), Point(7, -3), Point(6, -2),
Point(5, -2), Point(4, -2), Point(3, -1), Point(2, -2), Point(1, -2),
Point(0, -3), Point(-2, -3), Point(-3, -4), Point(-4, -3), Point(-5, -3),
Point(-5, -2), Point(-4, -2), Point(-4, .5), Point(-5, .5), Point(-5, 1),
Point(-4, 1), Point(-4, 2), Point(-4, 4), Point(-3, 4), Point(-3, 2),
Point(-2, 2), Point(-2, 0), Point(-1, 1), Point(0, 1)
};
My current guess is a Group within a Group.
Thanks!