MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGeoProc:Topology2D:Segment

From MapWindow GIS

Jump to: navigation, search

Segment

Summary

Stores a set of double values that represents a line segment.

Fields

X1 The X coordinate of the Start Point of the segment
X2 The Z coordinate of the Start Point of the segment
Y1 The Y coordinate of the Start Point of the segment
Y2 The Y coordinate of the End Point of the segment

Methods

ClosestPointOn This retrieves the shortest path, but only returns the point that represents the closest point to this segment that is located on the segment specified.
ClosestPointTo This function has 2 overloads.
Constructor This function has 6 overloads.
Copy Returns a new instance of the Topology2D.Segment class with the same values as this object.
Crosses Checks to see if two segments cross. This will not return true if the endpoints touch, or the lines overlap. Specifically the middle portions of the lines have to contact each other without involving any of the endpoints.
DistanceTo This function has 3 overloads.
Intersection Returns the point where two segments intersect, if any exists.
IntersectsWith This function has 3 overloads.
IsCompletelyWithin Returns true if the entire segment is within the polygon, without touching or crossing any of the edges.
IsIdenticalTo Checks the points of the segemnts to see if they are the same, but is unconcerned with direction.
IsParallelTo Returns true if the line segments are parallel
IsPerpendicularTo Returns true if the line segments are perpendicular
IsWithinADistanceOf This function has 3 overloads.
LocationByX Given a segment, we try fix the value of one coordinate to solve for the other two.
LocationByY Given a segment, we try fix the value of one coordinate to solve for the other two.
SharesALineSegmentWith Since these are already segments, we just determine if the intersection is a valid line segment. If the segments intersect as a point, or don't intersect, this will return false.
ShortestPathTo This function has 2 overloads.
Touches Checks to see if two segments touch. This is true if a vertex from one segment intersects with the other segment. Does not return true if only the line areas touch one another.
TouchesTheBoundaryOf This function has 2 overloads.
ToVector Creates a new vector from this segment where the StartPoint becomes the beginning of the vector and the end point is the tip of the vector.

Back to MapWinGeoProc.Topology2D

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGeoProc:Topology2D:Segment"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: November 12 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links