Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7992451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:34:02+00:00 2026-06-04T13:34:02+00:00

Write an applet that draws the rectangles (use fillPolygon() function) turned by angle ALPHA

  • 0

Write an applet that draws the rectangles (use fillPolygon() function) turned by angle
ALPHA relatively to the previous rectangle. Center of rotation is a one corner of a rectangle. ALPHA is equal to 20 degree, one side of rectangle is equal to 30 and other side is equal to 50. Amount of rectangles is equal to 18.

Please i need help in calculating coordinates of rectangle corners for fillPolygon function
unfortunately my trigonometry is very poor. and i dont have even any idea how to find these corners

i attach link for my homework it is Task2. Thanks for help

http://staff.neu.edu.tr/~aamircanov/COM442Ass.pdf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:34:04+00:00Added an answer on June 4, 2026 at 1:34 pm

    You’ll need to perform a rotate transformation. Each class extending the abstract class Graphics2D implements a method like this.

    Just insert appropriate code in the paint method of your applet. You’ll need a combination of drawRect (or fillPolygon as your teacher wishes), translate and rotate methods.

    Check out the javadoc http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/Graphics2D.html#rotate%28double%29

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with primefaces. I need to write a java script function that
I am trying to write a Java applet that will read from a user's
I'd like to write an application that would use both Javascript and HTML as
I have to write an applet that brings up a password dialog. The problem
I'm trying to write an applet that would sign e-mail with S/MIME. Obviously I
I'm trying to write a game applet that responds to keys typed by the
Hi I am trying to write a java applet that will get some hard
I need to write a VB.Net 2008 applet to go through all the fixed-drives
Is it possible for a signed Java Applet or Web Start app to write
write a script that takes two optional boolean arguments,--verbose‚ and ‚--live, and two required

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.