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 9149525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:29:20+00:00 2026-06-17T11:29:20+00:00

I am creating a Rect in C# with two points. These points are actually

  • 0

I am creating a Rect in C# with two points. These points are actually Geographical bounds. The problem I am having is what when I create the rectangle the y axis is flipped.

For example say my data is west="5.42194487004" south="46.407494" east="17.166386" north="55.056664"

I pass that into Rect geoBounds = new Rect(new Point(west, north),new Point(east, south));

The Rectangle that is created has the following properties

    Bottom  55.056664          double
    Height  7.781945           double
    IsEmpty false              bool
    Left    5.864166           double
    Right   15.038887000000003 double
    Top     47.274719          double
    Width   9.1747210000000017 double
    X       5.864166           double
    Y       47.274719          double

The Y axis is flipped. I have triple checked that the data being fed into the call is correct. What is wrong? Also I know that I did not supply much code but did not feel any more was needed. Will provide more if needed.

  • 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-17T11:29:20+00:00Added an answer on June 17, 2026 at 11:29 am

    The coordinate system has 0,0 at the top left of the screen, with Y increasing in the downward direction. You can see this at the example page for the Rect.Bottom property: http://msdn.microsoft.com/en-us/library/system.windows.rect.bottom.aspx

    Note on that page this comment:

    // Bottom property gets the y-axis value of the bottom of the rectangle.  
    // For this rectangle the value is 55.
    rectInfo = rectInfo + "Bottom: " + myRectangle.Bottom;
    

    and this one:

    // Top property gets the y-axis position of the top of the rectangle which is  
    // equivalent to getting the rectangle's Y property. 
    // For this rectangle the value is 5.
    rectInfo = rectInfo + "| Top: " + myRectangle.Top;
    

    This is further supported by the explicit constructor for Rect: http://msdn.microsoft.com/en-us/library/ms587929%28v=vs.95%29.aspx

    Note that x and y describe the top left corner, where width extends that in the rightward direction and height extends downwards.

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

Sidebar

Related Questions

I am creating rectangle nodes with a for() statement and now I need to
I am creating a rectangle element which I want to later use as a
Having trouble creating my swap chain. I receive the following error. DX3dApp.obj : error
I am creating a rectangle as a custom control object that is placed within
I am creating a Guitar Hero Clone using C# and am having some trouble
I am creating say a rectangle in coregraphics - using CGContext functions in the
I have an app where I am creating two subviews of the main window,
Need help with the following. I am creating two different combinations of view/controllers that
What is the correct way of creating a 2D numpy rect array, like: 0000000000000000000
Creating a class at runtime is done as follows: klass = Class.new superclass, &block

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.