• Post Reply Bookmark Topic Watch Topic
  • New Topic

g2d line rotate towards specified x/y  RSS feed

 
Evan Pierce
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im trying to make a line that i drew uysing Graphics2D to rotate towards a specified x/y (and would be rotating around in a circular fashion). from what i know of rotation i would do something like

but how can i make it so that the line point in the direction of a specified x/y that i give it?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!