?
Solved

Drawing on segments of parallel lines?

Posted on 2013-05-16
1
Medium Priority
?
258 Views
Last Modified: 2013-05-22
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
Comment
Question by:developer2012
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 1500 total points
ID: 39176178
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question