Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

find a point on a line  RSS feed

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i have two point p1, p2

i draw a line with theses points

is there a way to draw a perpendicular line a x pixels or y % of p1... this point should be on the line


thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This takes me back to my computer graphics class, so very long ago :/

*sigh*
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!