Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Programmer > Re: java affine...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 52621 of 55513
Post > Topic >>

Re: java affine transformations

by Jeremy Watts <jwatts1970@[EMAIL PROTECTED] > May 10, 2008 at 07:16 AM

hi Roedy,

tried some of the code on your site, this snippet:-

"im****t java.awt.geom.AffineTransform;
....

// transform that ****fts points 10 right and 20 up
AffineTransform transformer = AffineTransform.getTranslateInstance
( 10.0d, -20.0d );

// create point
Point2D before = new Point2D.Double( 3.0d , 6.0d );

// create point to hold result
Point2D after = new Point2D.Double();

// transform the point
after = transformer.transform ( before, after );

// prints 13.0,-14.0
System.out.println( after.getX() + "," + after.getY() );"



but it seems to throw an error for the line :-
"// create point
Point2D before = new Point2D.Double( 3.0d , 6.0d );"

it says 'cannot find symbol - class Point2D'  . whats going on here?

jeremy

Roedy Green wrote:

> On Sat, 10 May 2008 02:27:01 -0700 (PDT), Jeremy Watts
> <jwatts1970@[EMAIL PROTECTED]
> wrote, quoted or indirectly quoted someone
> who said :
>
> >how would you use the built in java 'affine transformations' found
>
> for background, see http://mindprod.com/jgloss/affinetransform.html
> --
>
> Roedy Green Canadian Mind Products
> The Java Glossary
> http://mindprod.com
 




 4 Posts in Topic:
java affine transformations
Jeremy Watts <jwatts19  2008-05-10 02:27:01 
Re: java affine transformations
Roedy Green <see_websi  2008-05-10 12:03:14 
Re: java affine transformations
Jeremy Watts <jwatts19  2008-05-10 07:16:40 
Re: java affine transformations
Lew <lew@[EMAIL PROTEC  2008-05-10 17:35:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 17:24:34 CST 2008.