• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Finding the endpoint of an Affine Transform

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic