• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Drawing on segments of parallel lines?

Hi everyone, I have this scenario:

I have two parallel lines and it has segments. Suppose these are P1 & P2. And, I have an option to put the tag any where.If I select any segment from p1 then i am able to create the graphic for it by using mouse event arguments.   Now, here is the condition, the same segment of the p2 should create the graphich when i create on p1.    Is there any way i can achieve this? Can any expert guide me or give me their ideas. Thanks
0
developer2012
Asked:
developer2012
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
I imagine you'd need to compute a perpendicular line between the point and your two parallel lines:
http://stackoverflow.com/questions/1811549/perpendicular-on-a-line-from-a-given-point

Do you have any existing code to show us?...that might help.
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now