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

  • Home
  • SEARCH
  • 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 8740525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:08:42+00:00 2026-06-13T11:08:42+00:00

I am dealing with a general rotation function to use in my programs. I

  • 0

I am dealing with a general rotation function to use in my programs. I use atan2(y, x) function to get angles. Since the origin is at top left on my Nexus S, I actually use atan2(-y, x) to get correct results in atan2. Otherwise I get wrong direction for rotation. For example, moving from P0(5,1) to P1(1, 5) is clockwise in my android and counterclockwise in a normal quadrant.

My assumption is that the origin is at top left in all Android devices. Is it correct?

  • 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-13T11:08:43+00:00Added an answer on June 13, 2026 at 11:08 am

    Yes, the origin is always in the top left corner in screen space. This has historical reasons, as screen space calculations started when television sets were used as screens. The raster gun of a TV starts at the top left corner, so this was accepted as the origin.

    There are some notable exceptions from the rule (though not for android devices) – cocoa interfaces seem to have their origin in the bottom left corner.

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

Sidebar

Related Questions

Dealing with some legacy code and in trying to get a poorly designed database
When dealing with a series of numbers, and wanting to use hash results for
Other questions dealing with use of match_parent pre 2.2 have answers stating one should
In my program I am dealing with tracking device movement with CMMotionManager and use
General Case How do you perform a left join across a many-to-many relationship when
Hopefully this doesn't fall under general discussion topic, since I'd like it to be
Dealing with Java - which the option you prefer in the most cases -
When dealing with a single file, I'm used to: /blah do some work n
When dealing with a collection of key/value pairs is there any difference between using
When dealing with events, people are usually taking examples of very simple values object

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.