Coordinator

  • Thread starter Thread starter MAY
  • Start date Start date
M

MAY

Hi,

In a form, i draw a straight line, the start point is, for example (23, 43)
and the end point is (243, 342). I want to check each points on that
straight line, how can i do that?

Regards,

MAY
 
May,

What do you mean you want to check each point on that line? What do you
want to check them for?
 
hi Nicholas,

I want to get the coordinates of each points that on the straight line as I
want perform some GDI+ manipulation such as check if the two straight line
are intersect or not.

MAY
 
I want to get the coordinates of each points that on the straight line as I
want perform some GDI+ manipulation such as check if the two straight line
are intersect or not.

You don't need all points on a line to check if two straight lines
intersect or not. Some fairly trivial equation solving can tell you
that.



Mattias
 
hi Mattias,

Could you mind tell me what equation can be use?
I am bad at Math :(

MAY
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top