How to find corners of square from it's center point? The 2019 Stack Overflow Developer Survey Results Are InFind the position of a beacon using lat/lng/signal strength datapoint lying inside a squarePoint P(x,y) inside a square, differences of distances to corners knownDetermine Center Point based on 2 separate elipsesCalculating top-left point from center point and mouse pointer locationGiven a point on a sphere, how do I find the angles needed to 'point' at it's center?Find distance from point to line using trigonometryHow to compute the intercept of a square with a line given by two points?Find all points within the locus of a line segmentGiven the coordinates of a box, how can I find the coordinates of a box that is X% bigger than the original box

Unbreakable Formation vs. Cry of the Carnarium

What is the meaning of Triage in Cybersec world?

What is a mixture ratio of propellant?

"To split hairs" vs "To be pedantic"

How to answer pointed "are you quitting" questioning when I don't want them to suspect

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Lethal sonic weapons

Inflated grade on resume at previous job, might former employer tell new employer?

A poker game description that does not feel gimmicky

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Could JWST stay at L2 "forever"?

If a poisoned arrow's piercing damage is reduced to 0, do you still get poisoned?

Is three citations per paragraph excessive for undergraduate research paper?

Are there any other methods to apply to solving simultaneous equations?

What does "sndry explns" mean in one of the Hitchhiker's guide books?

Springs with some finite mass

Is bread bad for ducks?

What does "rabbited" mean/imply in this sentence?

Where does the "burst of radiance" from Holy Weapon originate?

What is the steepest angle that a canal can be traversable without locks?

JSON.serialize: is it possible to suppress null values of a map?



How to find corners of square from it's center point?



The 2019 Stack Overflow Developer Survey Results Are InFind the position of a beacon using lat/lng/signal strength datapoint lying inside a squarePoint P(x,y) inside a square, differences of distances to corners knownDetermine Center Point based on 2 separate elipsesCalculating top-left point from center point and mouse pointer locationGiven a point on a sphere, how do I find the angles needed to 'point' at it's center?Find distance from point to line using trigonometryHow to compute the intercept of a square with a line given by two points?Find all points within the locus of a line segmentGiven the coordinates of a box, how can I find the coordinates of a box that is X% bigger than the original box










2












$begingroup$


It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.



How can I achieve this please?










share|cite|improve this question











$endgroup$











  • $begingroup$
    Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
    $endgroup$
    – fleablood
    Oct 21 '15 at 3:11










  • $begingroup$
    It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
    $endgroup$
    – dambros
    Oct 21 '15 at 3:14















2












$begingroup$


It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.



How can I achieve this please?










share|cite|improve this question











$endgroup$











  • $begingroup$
    Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
    $endgroup$
    – fleablood
    Oct 21 '15 at 3:11










  • $begingroup$
    It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
    $endgroup$
    – dambros
    Oct 21 '15 at 3:14













2












2








2





$begingroup$


It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.



How can I achieve this please?










share|cite|improve this question











$endgroup$




It's has been a while since I used any basic trigonometry, so I'm here requesting some aiding. I have the center point of a square (as lng/lat pair which I believe I can use as x/y) and the side length, and I need to find all 4 corners coordinates from this origin.



How can I achieve this please?







geometry trigonometry






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Oct 21 '15 at 3:04







dambros

















asked Oct 21 '15 at 2:55









dambrosdambros

11814




11814











  • $begingroup$
    Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
    $endgroup$
    – fleablood
    Oct 21 '15 at 3:11










  • $begingroup$
    It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
    $endgroup$
    – dambros
    Oct 21 '15 at 3:14
















  • $begingroup$
    Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
    $endgroup$
    – fleablood
    Oct 21 '15 at 3:11










  • $begingroup$
    It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
    $endgroup$
    – dambros
    Oct 21 '15 at 3:14















$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11




$begingroup$
Does the square require an orientation? The simplest answer is simply the four points (+/- 1/2 length +/- x, +/- 1/2 length +/- y)
$endgroup$
– fleablood
Oct 21 '15 at 3:11












$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14




$begingroup$
It doesn't require any orientation. It should be as simple as possible. Could you please elaborate you simplest answer? I am not that good with math...
$endgroup$
– dambros
Oct 21 '15 at 3:14










3 Answers
3






active

oldest

votes


















6












$begingroup$

Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.



enter image description here






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Nice drawing...
    $endgroup$
    – fleablood
    Oct 21 '15 at 3:30










  • $begingroup$
    Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
    $endgroup$
    – dambros
    Oct 21 '15 at 4:01











  • $begingroup$
    @dambros, sorry I don't know about this.
    $endgroup$
    – NoChance
    Oct 21 '15 at 4:04










  • $begingroup$
    @fleablood, thx.
    $endgroup$
    – NoChance
    Oct 21 '15 at 4:04


















3












$begingroup$

Let L = length of side. Let (h,k) be the center point.



The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$



If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$






share|cite|improve this answer









$endgroup$




















    1












    $begingroup$

    In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -



    Let L = length of the side. Let (h,k) be the center point.



    $(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
    $(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
    $(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
    $(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$



    Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.






    share|cite|improve this answer









    $endgroup$













      Your Answer





      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      );
      );
      , "mathjax-editing");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1490115%2fhow-to-find-corners-of-square-from-its-center-point%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6












      $begingroup$

      Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.



      enter image description here






      share|cite|improve this answer









      $endgroup$












      • $begingroup$
        Nice drawing...
        $endgroup$
        – fleablood
        Oct 21 '15 at 3:30










      • $begingroup$
        Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
        $endgroup$
        – dambros
        Oct 21 '15 at 4:01











      • $begingroup$
        @dambros, sorry I don't know about this.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04










      • $begingroup$
        @fleablood, thx.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04















      6












      $begingroup$

      Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.



      enter image description here






      share|cite|improve this answer









      $endgroup$












      • $begingroup$
        Nice drawing...
        $endgroup$
        – fleablood
        Oct 21 '15 at 3:30










      • $begingroup$
        Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
        $endgroup$
        – dambros
        Oct 21 '15 at 4:01











      • $begingroup$
        @dambros, sorry I don't know about this.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04










      • $begingroup$
        @fleablood, thx.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04













      6












      6








      6





      $begingroup$

      Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.



      enter image description here






      share|cite|improve this answer









      $endgroup$



      Assuming the length of the square is L, I hope the drawing below answers your question. I called the center point c, and each corner p1,p2,p3 and p4.



      enter image description here







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Oct 21 '15 at 3:26









      NoChanceNoChance

      3,76621321




      3,76621321











      • $begingroup$
        Nice drawing...
        $endgroup$
        – fleablood
        Oct 21 '15 at 3:30










      • $begingroup$
        Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
        $endgroup$
        – dambros
        Oct 21 '15 at 4:01











      • $begingroup$
        @dambros, sorry I don't know about this.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04










      • $begingroup$
        @fleablood, thx.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04
















      • $begingroup$
        Nice drawing...
        $endgroup$
        – fleablood
        Oct 21 '15 at 3:30










      • $begingroup$
        Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
        $endgroup$
        – dambros
        Oct 21 '15 at 4:01











      • $begingroup$
        @dambros, sorry I don't know about this.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04










      • $begingroup$
        @fleablood, thx.
        $endgroup$
        – NoChance
        Oct 21 '15 at 4:04















      $begingroup$
      Nice drawing...
      $endgroup$
      – fleablood
      Oct 21 '15 at 3:30




      $begingroup$
      Nice drawing...
      $endgroup$
      – fleablood
      Oct 21 '15 at 3:30












      $begingroup$
      Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
      $endgroup$
      – dambros
      Oct 21 '15 at 4:01





      $begingroup$
      Thanks for the input, even I could follow it. One more question, is there a way I can correctly convert lng/lat to x/y?
      $endgroup$
      – dambros
      Oct 21 '15 at 4:01













      $begingroup$
      @dambros, sorry I don't know about this.
      $endgroup$
      – NoChance
      Oct 21 '15 at 4:04




      $begingroup$
      @dambros, sorry I don't know about this.
      $endgroup$
      – NoChance
      Oct 21 '15 at 4:04












      $begingroup$
      @fleablood, thx.
      $endgroup$
      – NoChance
      Oct 21 '15 at 4:04




      $begingroup$
      @fleablood, thx.
      $endgroup$
      – NoChance
      Oct 21 '15 at 4:04











      3












      $begingroup$

      Let L = length of side. Let (h,k) be the center point.



      The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$



      If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$






      share|cite|improve this answer









      $endgroup$

















        3












        $begingroup$

        Let L = length of side. Let (h,k) be the center point.



        The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$



        If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$






        share|cite|improve this answer









        $endgroup$















          3












          3








          3





          $begingroup$

          Let L = length of side. Let (h,k) be the center point.



          The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$



          If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$






          share|cite|improve this answer









          $endgroup$



          Let L = length of side. Let (h,k) be the center point.



          The simplest answer is $(h + frac 1 2 L, k + frac 1 2 L), (h + frac 1 2 L, k - frac 1 2 L),(h - frac 1 2 L, k - frac 1 2 L), (h - frac 1 2 L, k + frac 1 2 L)$



          If the square must be rotated by the angle $theta$, The the solutions are $(h + frac 1 2 L sin theta, k + frac 1 2 L cos theta), (h - frac 1 2 L cos theta, k + frac 1 2 L sin theta),(h - frac 1 2 L sin theta, k - frac 1 2 L cos theta), (h + frac 1 2 L cos theta, k - frac 1 2 L sin theta)$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Oct 21 '15 at 3:29









          fleabloodfleablood

          73.9k22891




          73.9k22891





















              1












              $begingroup$

              In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -



              Let L = length of the side. Let (h,k) be the center point.



              $(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
              $(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
              $(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
              $(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$



              Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.






              share|cite|improve this answer









              $endgroup$

















                1












                $begingroup$

                In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -



                Let L = length of the side. Let (h,k) be the center point.



                $(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
                $(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
                $(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
                $(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$



                Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.






                share|cite|improve this answer









                $endgroup$















                  1












                  1








                  1





                  $begingroup$

                  In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -



                  Let L = length of the side. Let (h,k) be the center point.



                  $(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
                  $(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
                  $(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
                  $(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$



                  Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.






                  share|cite|improve this answer









                  $endgroup$



                  In case the square is rotated around the center by an angle theta, w.r.t the ground position (considered as when the sides are parallel to the x and y axis), the vertices are given as -



                  Let L = length of the side. Let (h,k) be the center point.



                  $(h - frac12L(sintheta + costheta), k - frac12L(sintheta - costheta)$,
                  $(h + frac12L(sintheta - costheta), k - frac12L(sintheta + costheta)$,
                  $(h + frac12L(sintheta + costheta), k + frac12L(sintheta - costheta)$,
                  $(h - frac12L(sintheta - costheta), k + frac12L(sintheta + costheta)$



                  Please beware, the answer provided by @fleablood seems to be wrong. Didn't work out for me. It fails in the very basic case of $theta=0$ and $theta=90$ or I'm misinterpreting the answer provided.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Mar 30 at 7:52









                  Kartik GuptaKartik Gupta

                  111




                  111



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1490115%2fhow-to-find-corners-of-square-from-its-center-point%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                      Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                      Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ