Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoUnits.XYvertex Class Reference

Plane representation of points where spherical calculations are inappropriate. More...

Public Member Functions

 XYvertex ()
 Defalut constructor.
 
 XYvertex (double x, double y)
 Parametric constructor.
 
 XYvertex (double lat, double lon, IXYconverter c)
 Constructor from spherical lat,lon.
 
override bool Equals (object obj)
 Equal() override.
 
void ToGeo (out double lat, out double lon, IXYconverter c)
 Convert to spherical lat,lon.
 
double Distance (XYvertex p1)
 Disptance to another vertex.
 
double Length ()
 Length of vector.
 
XYvertex Proximum (XYvertex p0, XYvertex p1, out double d)
 Returns nearest point on the edge joining p0 and p1.
 
XYvertex Proximum (XYvertex[] poly, out double d)
 Returns nearest point on the polygon poly. Polygon edges between consecutive points are regarded as straight lines.
 

Static Public Member Functions

static double Proximum (GeoPos[] gps, GeoPos gp, IXYconverter c, out GeoPos prox)
 Returns nearest point on the polygon gps from the point gp. Polygon edges between consecutive points are regarded as straight lines.
 

Public Attributes

double X
 
double Y
 

Detailed Description

Plane representation of points where spherical calculations are inappropriate.

Constructor & Destructor Documentation

◆ XYvertex() [1/2]

TPG.GeoUnits.XYvertex.XYvertex ( double  x,
double  y 
)
inline

Parametric constructor.

Parameters
xinput x
yinput y

◆ XYvertex() [2/2]

TPG.GeoUnits.XYvertex.XYvertex ( double  lat,
double  lon,
IXYconverter  c 
)
inline

Constructor from spherical lat,lon.

Parameters
latinput lat
loninøut lon
cAny suitable converter for conformal mapping between spherical coordinates and the isometric XY plane

Member Function Documentation

◆ Distance()

double TPG.GeoUnits.XYvertex.Distance ( XYvertex  p1)
inline

Disptance to another vertex.

Parameters
p1other vertex
Returns
distance

◆ Equals()

override bool TPG.GeoUnits.XYvertex.Equals ( object  obj)
inline

Equal() override.

Parameters
objother
Returns

◆ Length()

double TPG.GeoUnits.XYvertex.Length ( )
inline

Length of vector.

Returns
length

◆ Proximum() [1/3]

static double TPG.GeoUnits.XYvertex.Proximum ( GeoPos[]  gps,
GeoPos  gp,
IXYconverter  c,
out GeoPos  prox 
)
inlinestatic

Returns nearest point on the polygon gps from the point gp. Polygon edges between consecutive points are regarded as straight lines.

Parameters
gpsinput polygon
gpremote point
cAny suitable converter for conformal mapping between spherical coordinates and an isometric XY plane
proxoutput nearest point on the polygon gps from the point gp
Returns
Distance in meters to polygon

◆ Proximum() [2/3]

XYvertex TPG.GeoUnits.XYvertex.Proximum ( XYvertex  p0,
XYvertex  p1,
out double  d 
)
inline

Returns nearest point on the edge joining p0 and p1.

Parameters
p0first vertex
p1second vertex
doutput distance
Returns
Vertex representing nearest point on the edge joining p0 and p1

◆ Proximum() [3/3]

XYvertex TPG.GeoUnits.XYvertex.Proximum ( XYvertex[]  poly,
out double  d 
)
inline

Returns nearest point on the polygon poly. Polygon edges between consecutive points are regarded as straight lines.

Parameters
polyinput polygon
doutput distance
Returns
Vertex representing nearest point on the edge joining p0 and p1

◆ ToGeo()

void TPG.GeoUnits.XYvertex.ToGeo ( out double  lat,
out double  lon,
IXYconverter  c 
)
inline

Convert to spherical lat,lon.

Parameters
latoutput lat
lonoutput lon
cThe mapping for conversion

The documentation for this class was generated from the following file: