Using the Graphics translate function()

C

***C.Steamer***

Is there anyway to use the graphics translate function to translate to a
position on an arc.Instead of just going just to x,y, you could translate
around a circle.

Thanks
 
A

Andrew Thompson

Is there anyway to use the graphics ..

..translate function to translate to a
position on an arc.Instead of just going just to x,y, you could translate
around a circle.

If it's Swing and you have a Graphics2D you are in luck..
<http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#rotate(double)>

Combine that with translate, or perhaps use the (double,int,int)
form of the method, and you are there.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top