## Globals

**Summary**

Internal class that provides methods common to several members
of MapWinGeoProc.

**Structures**

Vertex |
A coordinate point (x, y) |

Line |
Defines a 2pt line segment that begins at point p0 and ends at
point p1. |

**Functions**

ReverseSimplePoly |
Reverses the orientation of a single-part polgyon. |

FixMultiPartPoly |
Determines which shapes are holes and which shapes are islands
in a multi-part polygon and fixes their orientations accordingly. |

CombineParts |
Takes an array of simple polygons and combines them into one
multi-part shape. |

ExtentsInside |
Finds if the testExtents lie completely inside of the
'outerExtents.' |

SeparateParts |
Separates all parts of a multi-part polygon. |

ConvertPolyToVertexArray |
Takes a MapWinGIS polygon shape and stores all x/y coordinates
into a vertex array. |

PrepareResultSF |
Deletes any file located at resultSFPath and creates a new one
(resultSF). |

CheckBounds |
This function has 2 overloads. |

SimpleIntersect |
Finds if two INFINITE lines will intersect, and if so, computes
the intersect point. |

LinesIntersect2D |
Calculates the intersection point between two lines. |

PerpProduct |
Computes the perpendicular product of two 2D
vectors. |

CalcSiDeterm |
Calculates the determinants for line segments with a
polygon to see if any intersections will occur. -- Angela Hillier 10/05 |

TurboDeterm |
Calculates the determinant of a 3X3 matrix, where the first two
rows represent the x,y values of two lines, and the third row is (1 1 1). |

SortPointsArray |
Given a reference point to the line, and an array of points
that lie along the line, this method sorts the array of points from the point closest to the reference pt to the pt farthest away. |

SortIntersectAndLocationArrays |
Given a reference point to the line, and an array of points
that lie along the line, this method sorts the array of points from the point closest to the reference pt to the pt farthest away. It also sorts the corresponding polygon location array so that the indicies refer to the correct intersection point. |

FindAndSortValidIntersects |
This function has 2 overloads. |

PtDistance |
Calculates the distance between two points. |

DetermineRowClearCount |
Determines how many rows can be filled before unmanaged
resources should be released. |

TrimGrid |
This function has 2 overloads. |

ProjToCell |
Takes an x/y coordinate and finds what row/col the point exists
in within the grid. |

CellToProj |
Finds the center point of a grid cell that corresponds to the
row/col provided. |

IsClockwise |
This function has 2 overloads. |

CopyFields |
Copies all fields from the inputSF .dbf table to the resultSF
table. |

InsertIDs |
Inserts the field 'ID' into the .dbf table along with the
corresponding value for each shape in the input shapefile. |