• Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding the endpoint of an Affine Transform  RSS feed

 
Kieran Murray
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear ranchmembers,

I am looking for a way to find the end point of an AffineTransfrom.
The class below draws a line. The canvas in clicked two times and the resulting points are then transferred to the TransmissionLine class and then used to create the line. The line is converted into an AffineTransform and then it is drawn.

I need to find the endpoint of the AffineTransform - it may be zoomed or rotated. Once I have found the endpoint I then have to write code to either drag the endpoint down or extend it.

I include the code for drawing the line



Best wishes,

The Apprentice
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!