• Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics Problem  RSS feed

 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am developing a solution to a small problem .

The problem is , i have to proof the (a+b)^3 using geometrical representation.

Since (a+b)^3 is a cuboid. i searched for java api for created cuboid.

But i did not find . what i did i created a cuboid using a combination of graphics drawLine() and drawRect() method.

But i have to change the shape of my cuboid depending on the values of a and b input by the user.

Since the cuboid is created using drawLine method. It's very difficult for me to change the shape of my cuboid by changing each line of the cuboid to map to a different x,y

Any idea??

Thanks
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Craig for your Reply.

It really helped me in my problem


Thanks again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!