This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding the endpoint of an Affine Transform

 
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
 
Create symphonies in seed and soil. For this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!