Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.
Become a Premium Member and unlock a new, free course in leading technologies each month.
/* macros */
#define gaiaGetPoint(xy,v,x,y) \
{*x = xy[(v) * 2]; \
*y = xy[(v) * 2 + 1];}
#define gaiaSetPoint(xy,v,x,y) \
{xy[(v) * 2] = x; \
xy[(v) * 2 + 1] = y;}
typedef struct gaiaPointStruct
{
/* an OpenGis POINT */
double X; /* X,Y coordinates */
double Y;
double Z; /* Z coordinate */
double M; /* M measure */
int DimensionModel; /* (x,y), (x,y,z), (x,y,m) or (x,y,z,m) */
struct gaiaPointStruct *Next; /* for double-linked list */
struct gaiaPointStruct *Prev; /* for double-linked list */
} gaiaPoint;[i] [b]//What is this piece[/b][/i]
typedef gaiaPoint *gaiaPointPtr;[i] [b]//What is this piece[/b][/i]
public class gaiaPointStruct
{
/* an OpenGis POINT */
public double X; /* X,Y coordinates */
public double Y;
public double Z; /* Z coordinate */
public double M; /* M measure */
public int DimensionModel; /* (x,y), (x,y,z), (x,y,m) or (x,y,z,m) */
public gaiaPointStruct Next; /* for double-linked list */
public gaiaPointStruct Prev; /* for double-linked list */
} gaiaPoint;
typedef gaiaPoint *gaiaPointPtr;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
using System;
using MyApplication1;
namespace MyApplication1
{
public class gaiaPoint
{
/* an OpenGis POINT */
public double X; /* X,Y coordinates */
public double Y;
public double Z; /* Z coordinate */
public double M; /* M measure */
public int DimensionModel; /* (x,y), (x,y,z), (x,y,m) or (x,y,z,m) */
public gaiaPoint Next; /* for double-linked list */
public gaiaPoint Prev; /* for double-linked list */
public static void gaiaSetPoint(double [] xy, int v, double x, double y) {
xy[(v) * 2] = x;
xy[(v) * 2 + 1] = y;
}
public static double gaiaGetPointX(double [] xy, int v){
return (xy[(v) * 2]);
}
public static double gaiaGetPointY(double [] xy, int v){
return (xy[(v) * 2 + 1]);
}
}
}
class MyProgram
{
static void Main(string[] args)
{
gaiaPoint gaiaPointPtr;
}
}
public static void gaiaGetPoint(ref double [] xy, int v, double x, double y)
{
xy[(v) * 2] = x;
xy[(v) * 2 + 1] = y;
}
public static void gaiaSetPoint(double [] xy, int v, ref double x, ref double y)
{
x = (xy[(v) * 2]);
y = (xy[(v) * 2 + 1]);
}
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions.